How to disable Google Cloud Messaging for package name

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.

+6
source share
1 answer

Since this is an old user question that is no longer inactive, I will post the last comment as an answer.

If you are still having problems with Cloud Messaging , it is recommended that you use the new Firebase Cloud Messaging , as it is a designed replacement .

+1
source

All Articles