From Google Developers - Turn on Google services for your application I have enabled Google Cloud Messaging for a specific package name.
Then I realized that the name of the package in which I enabled the service was incorrect, so I added the correct one.
Now, how can I remove the wrong package name from the list of allowed packages? For both reasons, the downloaded google-services.json file also contains information about the wrong package name.
There are no options available in the Google Developers Console → Cloud Messaging for Android, enable / disable the API. I violated the API, but repeating the procedure still produces the same result: JSON contains both package names.
source share