You do not need to eject an Expo app to get push notifications. expo-notifications plus Expo's push service handle APNs (iOS) and FCM (Android) for you: your server sends one HTTPS request with an Expo push token, and Expo delivers it to Apple or Google. What you do need is a development build, a device that can receive remote push, and two credentials uploaded once.
Before you start: three things that waste an afternoon
- Expo Go is limited for remote push since SDK 53 - no token on Android, and on iOS only with Expo's own credentials. Use a development build (see Expo Go vs a development build).
- Use a development build on a physical device, an Android emulator with Google Play services, or a supported iOS simulator (Xcode 14+ on macOS 13+, iOS 16+). Expo Go support and credentials depend on the platform and SDK. Local notifications also work in simulators and Expo Go.
- No EAS project id, no token. getExpoPushTokenAsync needs the projectId of your EAS project.
1. Link an EAS project
npx eas-cli@latest initThis creates the project on expo.dev and gives you its id. With a static app.json it is written for you as extra.eas.projectId; with a dynamic app.config.ts, eas init can only print it, so add it to the config yourself. The token request reads it from Constants.expoConfig.extra.eas.projectId.
2. Upload the APNs key (iOS)
In the Apple Developer portal, create a key with Push Notifications enabled. Then run eas credentials, choose iOS → Push Notifications, and upload it. The key is per app, not per build profile: upload it once and every profile uses it.
3. Upload the FCM v1 service account (Android)
In the Firebase console, open Project settings → Service accounts and generate a private key (a JSON file). Run eas credentials again, choose Android → FCM V1, and upload the JSON. The legacy FCM server key is gone; v1 is the only option.
4. Install and configure expo-notifications
npx expo install expo-notifications expo-device expo-constantsAdd the config plugin so the Android build gets a notification icon. The status-bar icon must be monochrome (white on transparent), or Android shows a grey square:
// app.config.ts
plugins: [
["expo-notifications", {
icon: "./assets/images/android-icon-monochrome.png",
color: "#ffffff",
}],
],5. Ask for permission and get the token
Ask when the user understands why - after they turn on a reminder, not on first launch. A denied prompt on iOS cannot be shown again; the user has to go to Settings.
import Constants from "expo-constants";
import * as Notifications from "expo-notifications";
import { Platform } from "react-native";
export async function registerForPush(): Promise<string | null> {
if (Platform.OS === "android") {
await Notifications.setNotificationChannelAsync("default", {
name: "Default",
importance: Notifications.AndroidImportance.DEFAULT,
});
}
const { status } = await Notifications.requestPermissionsAsync();
if (status !== "granted") return null;
const projectId = Constants.expoConfig?.extra?.eas?.projectId;
if (!projectId) throw new Error("No EAS project id - run eas init");
try {
const { data } = await Notifications.getExpoPushTokenAsync({ projectId });
return data; // "ExponentPushToken[...]" - store it on your server
} catch (err) {
// A simulator or emulator without push support fails here: keep the app running.
console.warn("Remote push token unavailable", err);
return null;
}
}Create the Android channel before you request the token: on Android 13 and later, the permission prompt only appears once a channel exists.
6. Show notifications in the foreground
By default a notification that arrives while the app is open is silent. Set a handler once, at startup:
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowBanner: true,
shouldShowList: true,
shouldPlaySound: false,
shouldSetBadge: false,
}),
});7. Open the right screen on tap
Send a route in the payload's data and navigate to it when the user taps. Handle the cold start too - the tap that launched the app arrives before your listeners are attached:
import { router } from "expo-router";
// In your root layout:
useEffect(() => {
// The cold-start tap can arrive through both paths: handle each response once.
let handled: string | null = null;
const open = (r: Notifications.NotificationResponse) => {
const key = `${r.notification.request.identifier}:${r.actionIdentifier}`;
if (key === handled) return;
handled = key;
const url = r.notification.request.content.data?.url;
if (typeof url === "string") router.push(url);
};
const sub = Notifications.addNotificationResponseReceivedListener(open);
Notifications.getLastNotificationResponseAsync().then((last) => last && open(last));
return () => sub.remove();
}, []);8. Send a test with the Expo push notification tool
Open the push notification tool at expo.dev/notifications, paste the ExponentPushToken, add a title and body, and put {"url": "/settings"} in the data field to test the deep link from step 7. From a script or your server it is one POST:
curl -X POST https://exp.host/--/api/v2/push/send \
-H "Content-Type: application/json" \
-d '{"to":"ExponentPushToken[xxx]","title":"Hi","body":"It works","data":{"url":"/settings"}}'The response is a ticket, not a delivery report. Errors like DeviceNotRegistered or bad credentials show up later in the push receipts, so check those (and drop dead tokens) from your server. Every step with the curl, the receipt request and the error table: Expo push notification tester. ReadyNative Pro ships a desktop app that sends test pushes and checks their receipts: see pricing.
9. Send from your server
Store each token on your server when the app registers it, and refresh it on every launch: a reinstall gives the device a new one. In Node, expo-server-sdk batches the requests for you:
import { Expo } from "expo-server-sdk";
const expo = new Expo();
const messages = tokens
.filter((t) => Expo.isExpoPushToken(t))
.map((to) => ({ to, title: "Hi", body: "It works", data: { url: "/settings" } }));
const ticketIds: string[] = [];
for (const chunk of expo.chunkPushNotifications(messages)) {
const tickets = await expo.sendPushNotificationsAsync(chunk);
for (const t of tickets) if (t.status === "ok") ticketIds.push(t.id);
}
// About 15 minutes later:
const receipts = await expo.getPushNotificationReceiptsAsync(ticketIds);
// status "error" with DeviceNotRegistered: delete that tokenLocal notifications: no server, no token
Not every notification needs a server. expo-notifications can schedule one from the app itself: a reminder in an hour, at a date, or every day at the same time. Local notifications need the permission from step 5 but no push token, so they also work in Expo Go. Keep the foreground handler from step 6, or a notification that fires while the app is open is not shown.
import * as Notifications from "expo-notifications";
// Once, in one minute
await Notifications.scheduleNotificationAsync({
content: { title: "Time's up!", body: "Back to it", data: { url: "/settings" } },
trigger: { type: Notifications.SchedulableTriggerInputTypes.TIME_INTERVAL, seconds: 60 },
});
// Every day at 9:00 (on Android, channelId picks the channel from step 5)
const id = await Notifications.scheduleNotificationAsync({
content: { title: "Daily check-in" },
trigger: {
type: Notifications.SchedulableTriggerInputTypes.DAILY,
hour: 9,
minute: 0,
channelId: "default",
},
});
// Later: cancel it, or list what is pending
await Notifications.cancelScheduledNotificationAsync(id);
const pending = await Notifications.getAllScheduledNotificationsAsync();A tap on a local notification goes through the same listener as a push, so the data.url deep link from step 7 works for both.
Expo push service limits
- Up to 100 messages per request.
- 600 notifications per second per project.
- Receipts are ready about 15 minutes after sending and are cleared after 24 hours.
- For extra safety, require an access token for sends in the Expo dashboard.
expo-notifications vs the Expo push service
They are two pieces that are easy to mix up. expo-notifications is the library in your app: it asks for permission, returns tokens, shows, schedules and handles notifications. The Expo push service is the server at exp.host that takes your send request and passes it to APNs or FCM. You can use the library without the service (local notifications, or your own FCM and APNs sending), but the service only delivers to apps that run the library.
What the Expo push token is
ExponentPushToken[...] identifies one install of your app on one device. Expo's push service maps it to the APNs or FCM device token, so your server stores one token type and sends one request for both platforms. To skip Expo's service and talk to FCM or APNs yourself, call getDevicePushTokenAsync instead and send the native token through your own integration.
Checklist when nothing arrives
- Is it a development or store build, not Expo Go, on a phone or a supported emulator or simulator?
- Did eas credentials show the APNs key and the FCM v1 service account for this app?
- Does the bundle id / package name of the build match the credentials?
- Is the app in the background? In the foreground you need the handler from step 6.
- On Android, does a notification channel exist, and is it not muted in system settings?
- What do the push receipts say?
- Did getExpoPushTokenAsync get the projectId? Without an EAS project id it cannot create a token.
- Did the user deny the permission once? iOS asks only once; after that, send them to the app's page in Settings.
Read next: RevenueCat subscriptions in an Expo Router app, or the full Expo Notifications module docs.
FAQ
Do I have to eject from Expo to use push notifications?
No. expo-notifications is a config plugin, so it works with Continuous Native Generation. What you need is a development build instead of Expo Go, not a bare project.
Do Expo push notifications work in Expo Go?
Not remote ones. Since SDK 53, Expo Go on Android gets no push token, and on iOS the token only works with Expo's own credentials. Local notifications still work. Use a development build instead.
What is an Expo push token?
A string like ExponentPushToken[xxx] that identifies one install of your app on one device. Expo's push service maps it to the APNs or FCM device token, so your server stores one kind of token for both platforms.
How do I test Expo push notifications?
Paste the token into the push notification tool at expo.dev/notifications, or POST to https://exp.host/--/api/v2/push/send with curl. Use a development build on a physical device, an Android emulator with Google Play services, or a supported iOS simulator (Xcode 14+ on macOS 13+, iOS 16+).
What are the limits of the Expo push service?
One request can carry up to 100 messages, and a project can send 600 notifications per second. Check receipts about 15 minutes after sending; they are cleared after 24 hours.
Do local notifications need a server or a push token?
No. scheduleNotificationAsync shows a notification from the app itself after a delay, at a date, or every day at a set time. It needs notification permission, not a push token, and works in Expo Go.
Can I send through FCM or APNs directly instead?
Yes. Call getDevicePushTokenAsync to get the native device token and send with your own FCM or APNs integration. You then handle each platform's payloads and errors yourself.
Next steps
- Expo Go vs development build: limitations — Before: push needs a development build, not Expo Go
- Add push notifications — Or: the template's push setup, step by step
- Expo Notifications module — The module, if you want push wired without the manual steps
- Ship to TestFlight — Then: a release build that receives pushes