Is it possible to integrate FCM and AdMob in a single App from two different accounts?
When you add FCM and Admob to your project, the first step is to configure the project and then to add google-services.json file in app folder, which have all the configurations that is needed to link your project. There can be only one google-services.json file in your project. So it's not possible to use two accounts for the same.
Related
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?
I have an Android app handling notifications through IBM Bluemix. I created a google-services.json file, added it to the project. It works like a charm.
But now, I want to deploy a generic version of the app to the store. That application will serve different customers, where each customer has to create his own Firebase project and Bluemix account. When initializing, the application should read the necessary ids/secrets from a server instead of getting the values embedded statically in the app.
I saw that the google-services.json file is a convenient way to generate resources in values.xml, but I didn't find how to have these values set dynamically at runtime. Any idea?
i have two projects in android studio. the first one is called "test1" and the second is "test2". i want to use google cloud messaging to communicate with each other. my question is, do i need to use the same "google-services json file (downloaded from google website) on both projects, and also the same project id?
or use diffrent google-services files?
you have to use two different json files, because first project package name and second project package name are different. Google will generate server key depends on package name.
I do not understand the communication word between two different projects. (You mean example to say Facebook send push notifications to Twitter ? )
If you have two different Projects, Yes you need two google-services.json files because both projects have different package names and Sender-ID(i.e Project ID in google console )
If you want communication between two application's (not two different projects), then you can simply use ONE google-services.json file
Note: With out google-services.json file also Servies works well in production but not after releasing your app in public.
Also read What is google-services.json to get clear idea of it.
I am using two Google services in my app. Both the services are created/registered with two different email addresses.
Google cloud Messaging - a#gmail.com.
Google Analytics - b#gmail.com
Now I came to know about Google Configuration JSON files. Can we have multiple files in the same project where different services can refer to different files?
As already answered in How to integrate two or more google-services.json file together for different google service in same project using Android Studio, you do not need two different google-services.json files. Both will have identical configurations. These configuration files are unique for every project irrespective of how many services you have activated.
With reference to getting a configuration file for Google Cloud Messaging and Google Analytics, wherein you must select an existing project for your app, it shows that both have identical google-services.json file.
And as noted, as you keep adding services, the google-services.json file gets updated. The last file you download has all the services activated.
I have an Android app containing 10 different app flavors, and I need to send push notifications targeting specific flavors. I got it working with one, by using google official support documentation - using the file google-services.json on the root of my project.
I know I will need one google-services.json file per each of the flavors (since they're in fact different apps), but the issue comes on where to put those different files, since this needs to go to the root of the project and not to the root of each specific flavor.
Anyone has had a similar issue before and found a way of handling it?