DeviceNotRegistered Error

Please provide the following:

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

I’m having trouble getting push notifications setup on a new project. I’m using the code here (Push Notifications Overview - Expo Documentation) to get a push token on an app that I am testing on TestFlight. once the token is acquired, I alert the token so that i can test a cURL request like so (actual push token):

curl -H "Content-Type: application/json" -X POST "" -d '{
  "to": "ExponentPushToken[MPd7H8EvdaOh-JWZxuZu6HO]",
  "body": "world"

However, every time I get a new token and make a request, I get an error message:

{"data":{"status":"error","message":"\"ExponentPushToken[MPd7H8EvdaOh-JWZxuZu6HO]\" is not a registered push notification recipient","details":{"error":"DeviceNotRegistered"}}}

I’ve tried to find info on debugging this in the forums and in slack but to no avail. I’ve regenerated my certs a few different times but nothing seems to work. Any info on how to debug this would be super helpful. Thanks!

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