How to know which device produces push notification error?

Please provide the following:

  1. SDK Version: 36
  2. Platforms(Android/iOS):

using Push Notifications with Expo (expo-server-sdk-node), how do I get the device that has the error?

When creating Push Tickets I get an array of ids without any info about device:

  "data": [
    { "status": "ok", "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" },
    { "status": "ok", "id": "YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY" },
    { "status": "ok", "id": "ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ" },
    { "status": "ok", "id": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA" }

And when I request the receipts I get this back:

    "data": {
            "status": "error",
            "message": "The recipient device is not registered with FCM.",
            "details": {
                "fault": "developer",
                "error": "DeviceNotRegistered",
                "sentAt": 1587895296
            "__debug": {}

How am I supposed to know which device has the error?


you would have to keep a record of the id matched to a expo token.

Yeah, but that’s a bit cumbersome. Why does the receipt not include the token?
Even in the expo docs the token is included…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.