how to make authentication in multiple apps using google developer console? - android

I want to make an android project using firebase as backend for it, the project contains multiple apps for admin,vendor,user and I know it's possible to add multiple apps in the same firebase project but is it possible to use one project and different apps in google developer console to add sha-1 for every app in it or what the best approach to implement that?

Related

Using firebase different apps same project vs different projects

I'm an android developper and i've a few apps published on google play... I do myself every single aspect of my apps including maintence.
I've two similar apps that share some core API... they dont share database nor storage, just some java API of my own and some google cloud functions i made (public)
When i was preparing the firebase infrastructue to run the second one i decided for creating a second app in the same firebase project as the first one... this was a decision made basically because i hated the firebase "switch between projects" tools.
my question is:
what are the advantages and disadvntages of having multiple apps sharing same firebase project?
when should i create a new project for a new app and when should i reuse the project
I'm a single self suficient developper so any sort of "project permissions" wont make difference to me
The primary reason to have multiple apps in the same project is when you want to share database and user data between them. Multiple apps in the same project are definitely expected to share data and configuration across all Firebase products. A common use case is when you have an end-user app and an admin app, both working against the same data.
If you're not sharing data between the apps, then you will only run into future trouble if you have multiple apps in the same project. (For example, see this question which was asked at the same time as yours.)

GoogleAnalytics in AndroidStudio

I have an existing Android Project existing for years now, also included with GoogleAnalytics. Now I come to migrate the project to AndroidStudio.
I followed the Instructions : https://developers.google.com/analytics/devguides/collection/android/v4/ , but I am stuck at "Get a configuration file", which I do not understand. In this step they want me register a new app and I get the following form. How can I choose my already existing App. I know my Packagename, but for the Appname I am not sure. And if I would fill in the correct names, would I be able to choose my existing App ? I do not want to create a new App in GOogle Play Console, because I fear everything is destroyed.
How to get the google-services.json without overwriting (destroying) my already existing App in GooglePlay Store
Google highly recommend to use firebase instead of google analytics. All manuals and guidelines are changed for easy to use firebase implementation.
Firebase is much mire better than google analytics for mobile app development.
https://firebase.google.com
Google recommendation

Best way to set up Google Analytics for same app, multiple platforms

What's the best way to set up Google Analytics to track one app on multiple platforms (e.g. Android, iOS).
The app is very similar on all the platforms, so we'd like to view activity in aggregate, but also have the ability to cut by key values such at platform, user state (signed in, signed out etc)
Also, what's the best way to track a unique instance of the app (as a user)? Is there some way to create a unique ID on install that stays in all tracking calls for the lifetime of the install?
Thanks!
What I did is make a list of what I want to track and name them the same thing in both apps. The code in the app will be different from android to iOS.
But for the analytics part just use one project in the google dev console. Then add both app to the project like the docs say. you will have to follow the steps in the google documentation. But just keep it in the same project and then both devices types will be in the same project and you won't have to juggle two projects at the same time.
It works great doing it like that

Implement two types of in app purchase in android app

I have a pretty complex project, it uses a lot of custom views and image manipulation.
I want to have in it 2 type of in app purchases, one for Google Play and one for Amazon.
I want to be able to easily maintain code for both, so from what I see I have some options:
I can add both apis on the app and have a flag, based on which, when I build the APK I enable one or the other. Is Google Play sensing if I add Amazon API in the app ? Could this be a problem when uploading the apk ?
I can make the main project as a library project and then create two new projects which are using it. One for Google Play and one for Amazon. All changes will be made in the library project so code is easily maintainable
I can have two separate projects one for Google Play and one for Amazon. In this case it might be pretty hard to keep track of changes, but doable.
Which approach would be better and why ?
Go for the first option.
If the app you uploaded to Google Play uses Google Play for in-app billing, then you have no issues whatsoever, even if there is coding and permissions etc. for Amazon payment inside the app. Google doesn't analysis this. And event if they would, you are on the save side, as you only use Google Play's in-app billing.
You can even improve this option by using Android Studio and Gradle build. It allows to package only those artefacts, that you need for certain build variant. In your case, you can have a single version of project and configure Gradle in a way, that it creates two apk-files: one for Google Play and one for Amazon with respective payment logic in them.

Add Mobile Backend starter to existing project

I've got a Google Cloud console project, which I use for Google Play Game Services. Now I've read this article, talking about easily creating a mobile backend for your app. However, this only talks about creating a new project. I want to deploy the backend for my existing project.
Is that possible? How would I do that? Note that when I go to my project page in the Google Cloud Console, there is no "Getting Started" button, or "Deploy" button.
If you have an existing project created from cloud console, then you can deploy the mobile backend starter for it from the project page. If you are not seeing the option, then possibly, it is collapsed as below:
If you click that, you should be able to see the mobile backend option or photofeed app option, which are horizontally scrollable
Note, we have changed the UI a bit in the Cloud Console. But you can still deploy the mobile backend sample. https://developers.google.com/cloud/samples/mbs/deploy_backend
It would seem to me that as of this posting (4/10/14) the easiest way to do this is to just append /mobilesample to the main URL of your project, like so;
https://console.developers.google.com/project/half~baked-UIswitch-538/mobilesample/
From there you just click the deploy button, and you're good. At least I was good. And I have no idea what I'm doing :P

Categories

Resources