Which SDK Should I Use?
Expo Go is not supported for mobile push because Sendrealm uses native Android and iOS code. Use an Expo development build or a production build.
Device SDKs
Use a device SDK when your app needs to receive push notifications. Device SDKs help your app:- Register the current app install with Sendrealm.
- Ask for notification permission at the right time.
- Link the device to a signed-in user.
- Store app-sourced tags.
- Track app events for segmentation and automations.
- Handle notification opens.
Server SDK
Use the JavaScript SDK from trusted code when you need to call the Sendrealm API. Common backend tasks include:- Sending email.
- Sending push notifications.
- Creating or updating contacts.
- Ingesting events.
- Managing audiences, topics, templates, and automations.
Recommended Setup Order
For mobile push, use this order:- Create or select your Sendrealm app in the dashboard.
- Configure the push provider credentials for your platform.
- Install the SDK.
- Initialize the SDK once during app startup.
- Ask for notification permission after explaining the value to the user.
- Call
loginafter the user signs in. - Send a test push to a real target device.
- Check SDK diagnostics if delivery does not work as expected.
What You Need From The Dashboard
Device SDKs need a Sendrealm app ID. Mobile push providers also need platform credentials:- Android: Firebase service account JSON and matching Android package name.
- iOS: APNs
.p8key, Key ID, Team ID, Bundle ID, and APNs environment. - Web Push: Web provider enabled in Sendrealm.