Get corresponding expo push token from receipt error?

Please provide the following:

  1. SDK Version:38
  2. Platforms(Android/iOS/web/all):Android/IOS

I understand that we need to stop sending push notifications to non registered devices, otherwise the app would be blocked from any publication store. But how am I suppose to get the “corresponding expo push token” that caused the DeviceNotRegistered error from the receipt?

Hi! I think this documentation is what you’re looking for

In short: when you send push notifications, you’ll receive back an array of push tickets that are in the same order as the push notifications you sent. Since the order remains the same, you can easily map token → ticket id (the ticket id is equal to the receipt id)

1 Like

Perfect! Thank you so much Charlie. You guys are doing amazing work, Love what your doing :smiley:

1 Like

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