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?
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)