Push notifications are one of the best ways to bring people back to an app, and one of the fastest ways to get it uninstalled. Getting both the plumbing and the etiquette right matters.

Ask at the right moment

iOS lets you ask for permission once. If the user says no, they have to go into Settings to change it. So don't ask on first launch. Ask when the value is obvious, for example right after someone books an appointment: "Want a reminder the day before?"

Get a push token

With expo-notifications, once permission is granted you get a token for the device:

const { status } = await Notifications.requestPermissionsAsync()
if (status === 'granted') {
  const { data: token } = await Notifications.getExpoPushTokenAsync({ projectId })
  await api.saveDevice({ token, platform: Platform.OS })
}

Store tokens per device on your backend, since one user may have a phone and a tablet.

Send from the server

Your backend posts messages to Expo's push service, which delivers through Apple (APNs) and Google (FCM). Check the receipts it returns: a DeviceNotRegistered error means the app was uninstalled, so delete that token.

Android channels

Android 8+ groups notifications into channels that users can mute separately. Create channels like "Reminders" and "Promotions" so people can turn off marketing without losing the alerts they actually want.

Handle the tap

A notification should open the screen it's about. Include a route in the notification's data and navigate to it in the response listener, including when the app was fully closed.

Keep it worth receiving

Send fewer, more useful notifications. Every message should be something the user would be glad to know right now.