Skip to content

suprsend/expo-example

Repository files navigation

SuprSend Expo SDK — example app

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

Project layout

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

Deeplink format

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors