This page used to host a browser tester. It was removed, and the same tool is now the Expo Push desktop app in ReadyNative Pro. Everything below works without it. See the desktop app.
1. Get an Expo push token
- Link an EAS project:
bunx eas-cli initprints the project id. The token call needs it asprojectId:getExpoPushTokenAsync({ projectId }), with the id fromConstants.expoConfig.extra.eas.projectId. - Upload the push credentials with
eas credentials: the APNs key for iOS and the FCM v1 service account for Android. - Install a development build on a phone, an Android emulator with Google Play services, or a supported iOS simulator:
eas build --profile developmentornpx expo run:ios --device. Expo Go has no remote push on Android since SDK 53. - Ask for notification permission, then read the token. It looks like
ExponentPushToken[...].
The full setup, with credentials and deep links: Expo push notifications: setup, token, testing. The module's own steps: push module docs. A null token: troubleshooting.
2. Send a test push with curl
Expo's push API takes a POST with a JSON body. Replace the placeholder with your token and run it in a terminal:
curl -H "Content-Type: application/json" -X POST "https://exp.host/--/api/v2/push/send" -d '{
"to": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
"title": "hello",
"body": "world"
}'The body can be one message, as here, or an array of up to 100 messages for the same project. Only to is required; title, body and a JSON data object are the usual fields.
In a ReadyNative app
The push module adds a script that sends the same request and prints the ticket:
bun run push:test "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]" "Title" "Body"See the Expo push notifications template.
3. Read the ticket
Expo answers at once with a push ticket. Status ok and an id mean Expo received the message, not that the phone did:
{
"data": { "status": "ok", "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" }
}A message Expo could not accept comes back with status error and the reason under details.error:
{
"data": [
{
"status": "error",
"message": "\"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]\" is not a registered push notification recipient",
"details": { "error": "DeviceNotRegistered" }
}
]
}If the whole request failed, the HTTP status is 4xx or 5xx and the reason is in an errors array.
4. Fetch the receipt
Send the ticket ids to the receipts endpoint:
curl -H "Content-Type: application/json" -X POST "https://exp.host/--/api/v2/push/getReceipts" -d '{
"ids": ["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"]
}'A receipt says whether APNs or FCM accepted the message. An id with no receipt yet is left out of the answer:
{
"data": {
"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX": { "status": "ok" }
}
}Enhanced push security
By default the push API needs no authentication. If you turn on enhanced push security in the Expo dashboard, every request needs an access token, and one without it fails with UNAUTHORIZED:
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-X POST "https://exp.host/--/api/v2/push/send" -d '{
"to": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
"title": "hello",
"body": "world"
}'Create the token at expo.dev/settings/access-tokens.
Errors and fixes
Expo reports a problem with one message in its ticket or receipt under details.error, and a problem with the whole request under errors.
| Error | Where | What it means | Fix |
|---|---|---|---|
DeviceNotRegistered | Ticket or receipt | The device cannot receive push notifications anymore, for example after the user revoked permission or uninstalled the app. | Stop sending to that token until the device registers again with your server. |
MessageTooBig | Receipt | The whole notification payload is over 4096 bytes on Android and iOS. | Shorten the title, the body or the data. The data field alone may be up to about 4 KiB. |
MessageRateExceeded | Receipt | You are sending messages to this device too often. | Back off exponentially and retry more slowly. |
MismatchSenderId | Receipt | The FCM credentials do not match: the server key and google-services.json must belong to the same sender ID. | Check that project_number in google-services.json matches the sender ID in the Firebase console, and that the FCM V1 key in the Expo dashboard is from the same project. |
InvalidCredentials | Receipt | The push credentials for your app are invalid, for example because you revoked them. | Android: upload the FCM V1 server credentials again. iOS: run eas credentials and regenerate the push credentials. For InvalidProviderToken, rebuild the app with a new push key and provisioning profile. |
UNAUTHORIZED | Request | Enhanced push security is on and the request has no valid access token. | Send the access token in an Authorization: Bearer header. |
TOO_MANY_REQUESTS | Request | More than 600 notifications per second for one project. | Rate-limit your sends below 600 per second. expo-server-sdk-node does this, with backoff on retries. |
PUSH_TOO_MANY_EXPERIENCE_IDS | Request | The request has tokens from more than one Expo project. | Read the details field, which maps each project to its tokens, and send each project's tokens in its own request. |
PUSH_TOO_MANY_NOTIFICATIONS | Request | More than 100 messages in one send request. | Send 100 messages or fewer per request. |
PUSH_TOO_MANY_RECEIPTS | Request | More than 1000 ticket ids in one receipts request. | Ask for 1000 receipts or fewer per request. |
Limits
- 100 messages per send request, all for the same project.
- 1000 ticket ids per receipts request.
- 4096 bytes for the whole notification on Android and iOS.
- 600 notifications per second per project.
- Receipts are often ready much sooner, but Expo suggests checking 15 minutes after sending. It clears them after 24 hours.
The Pro way: the Expo Push desktop app
ReadyNative Pro includes Expo Push, a desktop app that sends the test, checks the receipts and shows the fix for each error in one window:
- Send one message to up to 100 Expo push tokens, one per line.
- Title, body, a JSON data object, sound, iOS badge, Android channelId, priority and TTL.
- Expo's answer as it came back, one row per token, with the error name and the fix.
- Check the receipts for the tickets that came back ok.
- The same request as a curl command, copied to the clipboard.
- Saved tokens with a name, and a history of the last 50 sends.
- The access token for enhanced push security, kept in the OS keychain.
Installers for macOS (Apple silicon and Intel) and Windows 10 and 11 come with each Pro release; Linux builds from the source in tools/expo-push/. The app calls Expo's push API directly, with no server in between, so ReadyNative never sees your tokens, your messages or your access token. Expo Push in the docs.
Questions
Can I send a test push without a server?
Yes. Expo's push API takes a POST from anywhere: Expo's docs say you can send from a server, a command-line tool or the app itself. The curl on this page sends one message from your terminal. In a ReadyNative app, bun run push:test <token> "Title" "Body" does the same.
Is there a free web tester?
Not on this site. The browser tester that ran at this address was removed. Expo has its own push tool at expo.dev/notifications: paste a token and send. Or use the curl here, which needs nothing but a terminal. ReadyNative Pro includes the Expo Push desktop app, which sends, checks receipts and keeps your tokens.
Why do I get DeviceNotRegistered?
Apple or Google says the device can no longer receive pushes for that token, usually because the user revoked permission or uninstalled the app. Stop sending to the token until the device registers again. Expo's docs add that it takes an undefined amount of time to appear, so uninstalling and sending right after is often not a way to test it.
Do I need an access token?
Only if you turned on enhanced push security in the Expo dashboard. Without it, the push API needs no authentication. With it on, every request needs Authorization: Bearer <access token>, and a request without one fails with UNAUTHORIZED.
The ticket says ok. Why did nothing arrive?
A ticket with status ok means Expo received the message, not that the phone did. Fetch the receipt with the ticket id: it says whether APNs or FCM accepted it, and carries errors such as InvalidCredentials or MessageTooBig. Even an ok receipt does not guarantee delivery, for example when the device is off.
How do I get an Expo push token?
Call getExpoPushTokenAsync({ projectId }) with your EAS project id, in a development build on a phone, an Android emulator with Google Play services or a supported iOS simulator, after the user grants permission. Expo Go has no remote push on Android since SDK 53.
Source: Send notifications with the Expo Push Service on docs.expo.dev. The error names, limits and response shapes above are from it.