I saw the other thread. I am seeing the same issue, but this is a brand new app uploaded to google play store with FCM enabled. How come I see the errors if so?
{ fault: 'developer',
error: 'DeviceNotRegistered',
sentAt: 1553637311 }
{ 'xxxx-xxxx-xx-xxx-xx':
{ status: 'error',
message: 'The recipient device is not registered with FCM.',
details:
{ fault: 'developer',
error: 'DeviceNotRegistered',
sentAt: 1553634319 },
__debug: {} } }
If you look through the Notification docs, you’ll see that that error code- DeviceNotRegistered indicates that the device can’t receive Push Notifications anymore (It can be disabled / unregistered for several reasons such as users disabling push notifications or uninstalling the app).
OK, I’ll remove the push tokens that are failing. I’m sending the notification in chunks as per the guide, but how can I track the push token ID? The api does tell me which token the response message corresponds to.
I think I’m still a little confused, the Push Token you stop sending notifications to is the one listed in the chunk. The Notifications docs state
Upon success, the HTTP response will be a JSON object whose data field is an array of push tickets , each of which corresponds to the message at its respective index in the request
So if you’re sending as an array, the indexes of the request/response correspond.