Why does Invalid RegistraitonID with GCM work with an Android phone?

I did with server side coding using deviceId, apiKey and senderId. Can I find out why I am still getting this "Invalid Registration"?

+6
source share
1 answer

Check the registration ID that is created on the client side. It seems that the registration identifier on the client side and on the server side does not match.

Here is an explanation on the GCM page.

Check the formatting of the registration ID that you are transferring to the server. Make sure that it matches the registration ID that the phone receives at com.google.android.c2dm.intent.REGISTRATION and that you are not truncating it or adding extra characters. It happens when the error code is InvalidRegistration.

+8
source

Source: https://habr.com/ru/post/923864/


All Articles