Please provide the following:
- SDK Version: 38
- 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 "https://exp.host/--/api/v2/push/send" -d '{
"to": "ExponentPushToken[MPd7H8EvdaOh-JWZxuZu6HO]",
"title":"hello",
"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!