Add the appropriate “Tag” based on what Expo library you have a question on.
hey all, i’m wondering how to understand which push tokens failed? I’m using the node server maintained by the expo server, but all I’m getting back is a chunk of multiple messages that looks like:
{
id: ‘XXXXXX’,
status: ‘error’,
message: ‘The recipient device is not registered with FCM.’,
details: { error: ‘DeviceNotRegistered’, fault: ‘developer’ }
},
due to chunking, i don’t know exactly which token failed?
The tickets returned from Expo are in the same order as the notifications you sent, as stated in the docs:
The requests above will respond with a JSON object with two optional fields, data and errors . data will contain an array of push tickets in the same order in which the messages were sent (or one push ticket object, if you send a single message to a single recipient).
So you would remove the token at the same position in the array of notifications you sent