Ion Press - GCM_INVALID_AUTH

I am developing an Ionic application (version 1.3.1) and trying to use Ionic push. The application is correctly registered on the ion server, but I still do not receive notifications on my device. The only error I get is the notification status below:

{ "notification": "808cde89-eb21-40d7-9999-b86e5f86f1d3", "token": { "type": "android", "token": "dkYxYGcKeNo:APA91bE4OXhzkOUOSF1EsXxgY9Cd0Uu9-A98Ak5prdMIGUd10tLljacgKs7zAp1WPLF-bDiy3pkdroc9l8vWy4sXdfansr56-rIF59wJfR1e7EibJZHFO5DFxCThpT_ZgVn_T_0n8an1", "id": "ea40d3bc7561cc4f0d28ac49ce87fd3a", "app_id": "7ab91503", "invalidated": null, "created": "2016-09-17T11:31:53.481151+00:00", "valid": true }, "uuid": "0ebe9454-aebc-4c0b-b5b0-056920817f56", "status": "error", "error": "GCM_INVALID_AUTH", "created": "2016-09-17T14:31:20.517783+00:00", "user_id": null } 

I assume that the ion server is not sending a notification to the device, since the status is an error, but I do not know why I get this error GCM_INVALID_AUTH. What can cause this problem?

+5
source share
2 answers

You need to transfer your project from GCM to FCM (firebase cloud message) and use the new server key.

enter image description here

+1
source

solvable

I used the wrong credentials from the Google Cloud Platform. When I installed the server key, the problem was resolved.

+1
source

All Articles