DeviceNotRegistered error with push notification, even with push-notification-sandbox

Hello all, push notifications will not send in either my built APK or the Push Notification Sandbox here running in Expo client:
https://expo.io/@ide/push-notification-sandbox

No matter what I get:
{"data":{"status":"error","message":"The recipient \"ExponentPushToken[xxxxx]\" isn't associated with any device","details":{"error":"DeviceNotRegistered"}}

This is on Android. I verified in my own app that the permission was coming back as ‘granted’. I’m sending the notifications with this command:
curl -H "Content-Type: application/json" -X POST https://exp.host/--/api/v2/push/send -d '{ "to": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]", "title":"hello", "body": "world" }'

I’m beginning to suspect it might be the phone itself but I have no other phone to test with. Any help is appreciated.

Edit:
Managed to get a friend to test and the push token provided by his device did work, my test notification went through. I realized that my phone doesn’t have Google Play Services and that this is most likely the problem.

1 Like