A minimal reference Expo example app demonstrating the @suprsend/expo-sdk:
- User identification (login / logout)
- Email subscriber attribute updates
- Event tracking
- In-app inbox feed (list, pagination, mark-read, archive)
- Notification preferences (category + channel level)
- Native push notifications (FCM on Android, APNs on iOS) with deeplink routing
App.tsx — providers, auth state, deeplink routing
screens/
LoginScreen.tsx — distinct-id input
HomeScreen.tsx — buttons to trigger suprsend events and navigation to inbox and preferences screens
InboxScreen.tsx — suprsend inbox implementation
PreferenceScreen.tsx — suprsend preferences implementation
assets/
simplenotification.wav — custom Android notification sound
ic_stat_assignment_ind.png — Android status-bar notification icon
The example handles a single custom-scheme deeplink:
suprsendexpoexample://<screen>
Where <screen> is home, preferences, or inbox. Tap a push that carries this URL (configured in the SuprSend dashboard workflow) and the app navigates to the matching screen.
To add universal links (https://your.domain/...), add associatedDomains (iOS) and intentFilters (Android) entries in app.json and extend parseDeeplink in App.tsx.