Blog

React Native push notifications: FCM and Expo guide

Kyle SeylerKyle SeylerJanuary 07, 2026
React Native and Courier

To add push notifications to a React Native app, use @react-native-firebase/messaging in a bare project (FCM delivers to Android and relays to APNs for iOS) or expo-notifications in an Expo project. Either one gets push working. In production you'll also want delivery tracking, fallback channels, and user preferences, which is where a notification layer like Courier comes in.


Why React Native for mobile notifications

React Native powers apps for Meta, Microsoft, Shopify, and Discord. For notifications specifically, it offers real advantages.

🔄 Single codebase, unified logic. Your notification handling lives in one place. Add a notification type or update deep linking once, not twice.

⚡ JavaScript ecosystem. Your mobile code can share patterns with your web app. If your backend runs on Node.js, React Native will feel familiar.

🚀 Faster iteration. Hot reloading and over-the-air updates mean you can iterate on notification experiences without app store approvals.

The catch: while React Native unifies your application code, push notifications still require platform-specific infrastructure. iOS uses APNs, Android uses FCM, and you need both configured correctly.


Implementing push notifications in React Native

Setting up Firebase Cloud Messaging

FCM is the standard foundation: it handles Android natively and routes to APNs for iOS.

Terminal
yarn add @react-native-firebase/app
yarn add @react-native-firebase/messaging

# iOS: install pods
cd ios/ && pod install

You'll need platform-specific configuration:

  • Android: Add google-services.json to your project
  • iOS: Configure APNs certificates and add GoogleService-Info.plist

Requesting notification permissions

iOS requires explicit permission, and so does Android 13 (API level 33) and later. On iOS, messaging().requestPermission() shows the prompt. On Android 13+, request PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS too, because React Native Firebase doesn't prompt there. Either way, ask with context about why notifications are valuable:

JavaScript
import messaging from '@react-native-firebase/messaging';

async function requestNotificationPermission() {
  const authStatus = await messaging().requestPermission();
  const enabled =
    authStatus === messaging.AuthorizationStatus.AUTHORIZED ||
    authStatus === messaging.AuthorizationStatus.PROVISIONAL;

  if (enabled) {
    const token = await messaging().getToken();
    await saveTokenToBackend(token);
  }

  return enabled;
}

Managing device tokens

Tokens change when users reinstall apps, restore from backup, or when the OS rotates them:

JavaScript
import { useEffect } from 'react';
import messaging from '@react-native-firebase/messaging';

function useNotificationSetup(userId) {
  useEffect(() => {
    messaging()
      .getToken()
      .then(token => saveTokenToBackend(userId, token));

    const unsubscribe = messaging().onTokenRefresh(token => {
      saveTokenToBackend(userId, token);
    });

    return unsubscribe;
  }, [userId]);
}

Handling notification events

React Native apps handle notifications in three states:

JavaScript
import messaging from '@react-native-firebase/messaging';
import { useEffect } from 'react';

function useNotificationHandlers(navigation) {
  useEffect(() => {
    // App in foreground
    const unsubscribeForeground = messaging().onMessage(async message => {
      showInAppNotification(message);
    });

    // App in background - user tapped notification
    const unsubscribeBackground = messaging().onNotificationOpenedApp(message => {
      handleNotificationNavigation(message, navigation);
    });

    // App was closed - opened via notification
    messaging()
      .getInitialNotification()
      .then(message => {
        if (message) {
          handleNotificationNavigation(message, navigation);
        }
      });

    return () => {
      unsubscribeForeground();
      unsubscribeBackground();
    };
  }, [navigation]);
}

This gets push working. But production apps quickly hit limitations: no delivery confirmation, no fallback channels, no user preferences, and debugging is guesswork.


Expo push notifications

If you're building with Expo, you have a simpler option. Expo Push Notifications wraps FCM and APNs, eliminating most of the platform-specific configuration.

Why you'd choose Expo

Expo's managed workflow handles the painful parts of push setup:

âś… Less credential work. EAS manages your APNs credentials for you. On Android, you still upload FCM V1 credentials to Expo (see Expo's FCM credentials guide).

âś… Unified token format. Instead of separate FCM and APNs tokens, you get a single Expo push token.

âś… Works out of the box. In Expo-managed projects, push notifications require minimal setup.

If speed to market is your priority, Expo removes significant friction.

Setting up Expo push

Setup is short: install expo-notifications, request permission, and call getExpoPushTokenAsync() to get an ExpoPushToken, then send that token from your backend through Expo's push service. From SDK 53, Expo Go doesn't support push notifications on Android or iOS, so test push in a development build (Expo's push FAQ). The full flow, including the iOS soft-prompt permission pattern, foreground and background handlers, delivery receipts, and troubleshooting, is covered step by step in the dedicated Expo push notifications guide.

Where Expo push hits limits

Expo simplifies the basics, but the same production challenges apply:

⚠️ Single channel only. Expo Push is push only: email, SMS, and in-app require separate integrations.

⚠️ Limited delivery visibility. You know Expo accepted the message, but not whether the user received it.

⚠️ No user preferences. Opt-out logic and channel preferences are your responsibility.

For MVPs and early-stage products, Expo Push is a great starting point. As you scale, an orchestration layer handles the complexity Expo doesn't address.

Using Courier with Expo

Courier supports Expo as a push provider. After getting your Expo push token, manually sync it to Courier:

JavaScript
import Courier, { CourierPushProvider } from '@trycourier/courier-react-native';

// First, sign in with a JWT from your backend
const userId = 'user_123';
const jwt = await YourBackend.generateCourierJWT(userId);
await Courier.shared.signIn({ userId, accessToken: jwt });

// Then sync the Expo push token
await Courier.shared.setTokenForProvider({
  provider: CourierPushProvider.EXPO,
  token: 'ExponentPushToken[xxxxxx]'
});

// Now send via Courier - handles Expo push + email + SMS
// (from your backend)
await courier.send.message({
  message: {
    to: { user_id: 'user_123' },
    template: 'order-shipped',
    data: { orderNumber: 'ORD-456' }
  }
});

This gives you Expo's managed workflow simplicity with Courier's multi-channel orchestration.


Why you need a notification orchestration layer

Direct FCM handles the last mile: getting a message from Google's servers to a device. It doesn't address the operational complexity that emerges at scale:

🔑 Token lifecycle. Tokens expire, become invalid, or belong to logged-out users. Without proper handling, you're sending into the void.

📬 Multi-channel coordination. Users miss push for many reasons: disabled permissions, do-not-disturb, app uninstalled. Email or SMS fallbacks require separate infrastructure.

⚙️ User preferences. Users want control: order updates via push, marketing via email, nothing after 10pm. Building this from scratch takes weeks.

🔍 Delivery observability. FCM confirms acceptance, not delivery. When users report missing notifications, you need visibility into what happened.

✏️ Template management. Copy changes going through engineering creates bottlenecks.

Courier sits between your application and delivery providers like FCM, APNs, SendGrid, and Twilio. One API call; Courier handles routing, preferences, retries, and tracking.

JavaScript
import Courier from "@trycourier/courier";

const courier = new Courier({ 
  apiKey: process.env.COURIER_API_KEY 
});

// One call handles push, email, SMS based on user preferences
await courier.send.message({
  message: {
    to: { user_id: "user_123" },
    template: "order-shipped",
    data: {
      orderNumber: "ORD-456",
      trackingUrl: "https://tracking.example.com/ORD-456",
      estimatedDelivery: "January 10, 2026"
    }
  }
});

What you can build with Courier and React Native

The Courier React Native SDK extends well beyond push. Here's what becomes possible:

In-app notification inbox

Give users a persistent home for notifications they can reference, mark as read, or act on later:

Terminal
npm install @trycourier/courier-react-native
JavaScript
import Courier from '@trycourier/courier-react-native';
import { CourierInboxView } from '@trycourier/courier-react-native';

function NotificationInbox() {
  return (
    <CourierInboxView
      onClickInboxMessageAtIndex={(message, index) => {
        console.log(message);
        // Toggle read state
        message.read 
          ? Courier.shared.unreadMessage({ messageId: message.messageId }) 
          : Courier.shared.readMessage({ messageId: message.messageId });
      }}
      onClickInboxActionForMessageAtIndex={(action, message, index) => {
        console.log(action);
      }}
      style={{ flex: 1 }}
    />
  );
}

The component handles real-time updates, read/unread state, pagination, and styling customization.

User preference center

Let users control their experience without building preference UI from scratch:

JavaScript
import { CourierPreferencesView } from '@trycourier/courier-react-native';

// Topic-based preferences
function NotificationPreferences() {
  return (
    <CourierPreferencesView
      mode={{ type: 'topic' }}
      style={{ flex: 1 }}
    />
  );
}

// Or channel-based preferences
function ChannelPreferences() {
  return (
    <CourierPreferencesView
      mode={{ 
        type: 'channels', 
        channels: ['push', 'sms', 'email'] 
      }}
      style={{ flex: 1 }}
    />
  );
}

Users configure which categories they want and through which channels. Preferences automatically apply to all notifications.

Multi-channel routing

Send to multiple channels based on preferences. Route push by provider (apn for iOS, firebase-fcm for Android) rather than the generic push channel:

JavaScript
await courier.send.message({
  message: {
    to: { user_id: "user_123" },
    template: "payment-received",
    routing: {
      method: "all",
      channels: ["apn", "firebase-fcm", "email", "inbox"]
    },
    data: {
      amount: "$500.00",
      senderName: "Acme Corp"
    }
  }
});

Or create escalation chains: push first, SMS if push fails, then email:

JavaScript
await courier.send.message({
  message: {
    to: { user_id: "user_123" },
    template: "urgent-alert",
    routing: {
      method: "single",
      channels: [
        { method: "all", channels: ["apn", "firebase-fcm"] },
        "sms",
        "email"
      ]
    }
  }
});

Automatic token management

The SDK handles the token lifecycle that causes issues with direct FCM. First, generate a JWT on your backend, then sign in:

JavaScript
import Courier from '@trycourier/courier-react-native';

// Generate JWT on your backend, then sign in
const userId = 'user_123';
const jwt = await YourBackend.generateCourierJWT(userId);

await Courier.shared.signIn({ 
  userId: userId, 
  accessToken: jwt 
});

// Courier automatically:
// - Registers push tokens (APNS on iOS, FCM on Android)
// - Handles token refresh
// - Associates tokens with user profile
// - Cleans up on signOut

// When user logs out
await Courier.shared.signOut();

Users stay signed in between app sessions. The SDK persists credentials automatically.

You can also listen for push notification events:

JavaScript
import Courier from '@trycourier/courier-react-native';

// Configure iOS foreground presentation
Courier.setIOSForegroundPresentationOptions({
  options: ['sound', 'badge', 'list', 'banner']
});

// Listen for push events
const pushListener = Courier.shared.addPushNotificationListener({
  onPushNotificationClicked: (push) => {
    console.log('Push clicked:', push);
  },
  onPushNotificationDelivered: (push) => {
    console.log('Push delivered:', push);
  },
});

// Clean up when done
pushListener.remove();

👉 Learn more about Courier's mobile notification capabilities.


Comparing push notification approaches

CapabilityCourierFCM DirectExpo Push
Basic push notificationsâś…âś…âś…
Setup complexityLowHighLow
Certificate managementUpload APNs key and FCM credentials onceManualAPNs via EAS, FCM V1 uploaded
Token managementManagedBuild yourselfSimpler tokens
Delivery analyticsComprehensiveBasicBasic
Multi-channel (email, SMS)Unified APISeparate integrationSeparate integration
In-app inboxNative SDK componentBuild yourselfBuild yourself
User preferencesFull preference centerBuild yourselfBuild yourself
Channel fallbacksAutomatic routingBuild yourselfBuild yourself
Template managementDesign Studio + APICode changesCode changes
Non-engineer editing✅❌❌
Works with Expo managedâś…Via configâś… Native

When to use each approach

🏆 Courier is the production path for apps needing multi-channel notifications, user preferences, delivery tracking, and team collaboration. It works with both Expo and bare React Native.

🛠️ FCM Direct makes sense for bare React Native projects with simple single-channel needs and engineering bandwidth for platform configuration.

⚡ Expo Push is ideal for Expo-managed projects that need push notifications quickly without hand-building an APNs and FCM pipeline. See the Expo push notifications guide for the full setup.

Courier sends through FCM and Expo alongside your other channels, and handles the complexity between "send notification" and "user received it."


Start building with Courier

Whether you're implementing your first push notification or adding multi-channel orchestration to an existing app, Courier provides infrastructure that grows with you.

The Developer plan is free and includes 10,000 sends a month, covering: push, email, SMS, and in-app notifications; React Native SDK with inbox and preference components; Design Studio templates; delivery tracking.

👉 Create your free Courier account →

👉 Courier React Native SDK on GitHub →

👉 Mobile notifications with Courier →


Frequently asked questions

Why aren't my React Native push notifications showing on iOS?

Common causes: APNs certificates misconfigured, permissions not requested or denied, app in foreground (iOS doesn't show system notifications by default), or invalid device token. Check that messaging().requestPermission() returns AUTHORIZED. Courier's delivery logs show exactly where notifications fail.

How do I test push notifications during React Native development?

Push doesn't work in iOS Simulator, so use a physical device. Android Emulator works with FCM. On Expo SDK 53 or later, test push in a development build, since Expo Go doesn't support push notifications. Courier's delivery logs show exactly what happened to each send.


Explore the Courier React Native SDK and mobile notification capabilities for implementation details. 🚀