Push Notification

Introduction

  • iOS: Requires communicating with APNs (Apple Push Notification service).

  • Android: Requires communicating with FCM (Firebase Cloud Messaging).

  • Expo generates a special Expo Push Token (looks like ExponentPushToken[xxxxxxxx]). This single token works for the user's device regardless of whether they are on iOS or Android.

  • Each expo token corresponding to each device of app for specific version

Frontend

  • To obtain the device token

  • To handle the notification event (in app / notification bar)

Backend

  • To find out the target devices of recipient

  • Construct and send the notification message with expo sdk

Last updated