Skip to main content
@suprsend/expo-sdk combines the headless inbox feed from @suprsend/react-core with native push notifications (FCM + APNs) via expo-notifications.

Install

SuprSendExpoProvider

SuprSendExpoProvider identifies the current user and is required by both the feed and push notification providers. Wrap your app (or the authenticated portion of it) with it once:
See client authentication for how to generate userToken on your backend. Passing null (or undefined) for distinctId after a user was previously identified resets the client and clears the authenticated user — use this on logout. Inside this provider you can mount SuprSendFeedProvider (for the inbox feed) and/or SuprSendPushProvider (for push notifications) — each is independent, so use whichever your app needs.

useSuprSendClient

This hook contains the SuprSend client instance and has all the methods like preferences, user methods, etc. Read more in the @suprsend/react-core README.