1 Oct 2026 · updated 27 Nov 2026 · 13 min read

Expo push notifications: setup, token, testing

Set up Expo push notifications without ejecting: APNs key, FCM v1, the Expo push token, local notifications, a curl test, deep links and fixes.

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.

How a push reaches the phoneYour app gets an ExponentPushToken and sends it to your server, which stores it. The server posts to the Expo push service, which delivers through APNs on iOS or FCM v1 on Android. Expo's response is a ticket, not a delivery report; receipts follow about 15 minutes later.Device appgetExpoPushTokenAsyncExponentPushToken[…]Expo push serviceYour serverstores each tokenPOST /--/api/v2/push/sendticket (not a delivery report)receipts ~15 min laterAPNs (iOS)FCM v1 (Android)Phone showsthe notificationExpo Go is limited for remote push - use a dev build on a phone or a supported emulator.

Before you start: three things that waste an afternoon

1. Link an EAS project

npx eas-cli@latest init

This 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-constants

Add 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 token

Local 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

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

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

More guides