![enter image description here][1]
If I send push message by selecting a package from Firebase console, the push goes to all devices, but during sending to individual device, it displays the error:
Invalid reg token,please check token format
Error Snapshot:
[][1]
In the other answer, you mentioned in the comments that you're Registration Token is:
I noticed the
%
(percentage character) included in it, which isn't a usual character included in registration tokens. Figured that it was possible that this was encoded somehow. When decoded, this is the value:Notice that the
%3A
was turned into:
(colon). This is one of the usual characters. So I would suggest that you try the value above.And as a reminder, the
InvalidRegistration
error (emphasis mine):Don't even encode it. Use it as is. Also, do note that the Registration Token should be kept secret.
UserID in console is not the registration token for Firebase messaging. By Firebase docs:
My last registration token looks like cpeBAc1NkUE:APA91bEpAKHQTdgkWVdDzDZG8BPon0APaIhbbuSejDpZF-FO1gD2saDV7_EQDo2WEz0H6e5U-uf0i-v4b25NXgGzV2oUrNuboM5675WY7VCP3JcBl8BCNY7eV0VFGHT9oRox0EEoo_ch