In my app gcm server key that is being used on server is not visible on google developer console.
Hence when i am trying to use google-services.json approach to integrate analytics its resulting in creating new key and project id.
how do i get google-services.json file for existing project.
Follow this link to get a configuration file to add to your project. The configuration file provides service-specific information for your app. To get it, you must select an existing project for your app. Check this documentation.
Related
App Reject2I have tried to upload my App on store, My App rejected every time .
** Issues ** : Violation of permission Policy.
Requested permissions do not match core functionality of the app
You declared Default SMS handler (and any other core functionality usage while default handler) as the core functionality of your app. However, after review, we found that your app does not match the declared use case(s). Learn more about permitted uses and exceptions.
Please either:
• Make changes to your app so that it meets the requirements of the declared core functionality or,
• Select a use case that matches your app’s functionality
Go android folder in your project and locate manefest.xml file in it.
Remove all the unnecessary permissions that were generated during project setup.
Google play like it that, you should only ask for permission that your App is using and you must state it in data policy how you are using the data in the App
Make sure you test all the functionalities before you upload.
Google is trying to prevent logic bomb here.
Finally App was published.
If you app continuous reject, Next time going to before submit check the following file locations / list available.
Upload new build and play store automatically remove the previous uploaded file(if already 3 build upload and got rejected & again upload a new 3 build with latest version code )
Since we've upgraded from GCM to FCM we have a problem because the app suddenly needs a custom google-services.json and I don't seem to find a API or cli tool which enables me to add new apps and generate a new file.
Has someone found a way to automate this?
There is currently no API to generate a google-services.json. You can download it from your Firebase Console by selecting your project and then clicking to manage your Android app.
I am developing an app which use the google sign-in ,in order to that I have a google-services.json file ,now I need to use the Google Cloud Messaging service and my question is ,I need to generate another google-services.json file or can I use the google-services.json file I already have?
Go here to create your google-services.json file:
https://developers.google.com/mobile/add
(you probably need to be logged in). From there, you can select the platform and then you can select the google services you want. Among them, there is google sign in and GCM. Select those two and generate your one google-services.json file.
I am not sure how you generated your current google-services.json file or what you did, so I am not sure if you should just replace it but I do know the above method is how you can create one google-services.json file to rule them all.
I am implementing GCM with android client and according to the google documentation I need to download the google-services.json and add it to the module. I notice that the google-services.json contains the api key for the project. Is it wise to include the api key in the project?
In my scenario I have to use GCM with android using AWS, in the aws documentation they are simply adding the project number for registration
http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html
But in android studio when I add dependency in the build.gradle I am getting compilation error for missing google-services.json.
com.google.gms:google-services:
so my question is there a way I can skip the google-services.json in the android studio project? and if not then is it wise to include the api key in that file?
Thanks
P
As have been discussed in this thread, "google-services.json contains developer credentials and configuration settings, which is needed to verify while connecting with GoogleApiClient". However, it was also mentioned that GCM has been used before without google-services.json .
I have inherited a GCM application to send messages to android phones. We have an Android API Key set up that may have been compromised. I would just like to ensure that I change it in a way that doesn't break the apps that are currently running.
I think what I do is:
Create a new Android API Key here: https://console.developers.google.com/project/my-project-name/apiui/credential
Delete the existing Android API Key
As I understand it from the docs, when I create my new API Key from the last apk generated, the SHA1 I used to generate it, along with the package name, should match up to my already-deployed android apps. I should not need to re-upload an apk.
Is that correct?
Thanks!
Yes and no.
YES, if you are using OAuth 2.0, which depends only on the SHA1 and package name;
NO, if you are using API key, which usually require you to place your key in your manifest file.