FeaturesHow it worksPricingDocsBlog
Sign inGet started

Win back the shoppers who almost bought.

Get startedChat on WhatsApp

Product

  • Features
  • How it works
  • Pricing

Resources

  • Docs
  • Blog
  • Recovery guide

Company

  • Careers
  • Support

Legal

  • Privacy
  • Terms
  • Data Deletion

© 2026 Nerja AI · Customer Intent & Retention

support@nerja.ai·+880 1886-157091

Chat on WhatsApp
  • Nerja AI documentation
  • Quick start
  • How Nerja works
  • Install the Nerja Tag
  • Events the tag detects
  • Tag JavaScript API
  • Privacy & consent
  • Mobile SDK overview
  • Get the SDK
  • Android SDK
  • iOS SDK
  • Push notifications setup
  • Push templates
  • Deep links: app or website
  • Connect email (AutoSend, Resend, Amazon SES)
  • Connect SMS (Twilio, BulkSMSBD)
  • Connect WhatsApp (WAAPI, Meta, Twilio)
  • Connect push (Firebase)
  • Campaign types
  • Delivery, open and click tracking
  • Signed user ids
  • Permissions explained
  • API reference
  • Store integrations
  • Troubleshooting
  • FAQ

Mobile SDK

Mobile SDK overview

Why the Nerja mobile SDK exists, what it captures, what it needs from you and from the user.

Why use the SDK#

The Nerja Tag only sees your website. If people also use your app, the SDK makes them the same lead: their app events, their push token and their purchases join their website history, so a cart abandoned on the web can be recovered with a push to their phone — and a tap opens the right screen of your app.

What it does for you#

  • Registers and refreshes the device's FCM token and links it to the signed-in user.
  • Sends events you track (app_open is automatic) and identify calls.
  • Retries on a flaky network — requests are kept on the device and replayed.
  • Shows pushes that arrive while your app is open, with image and button.
  • Reports delivered / opened / clicked back to Nerja.
  • Routes a tapped push to the right screen — deep links.

What it needs#

NeedWhyWhere it comes from
An app key (nak_pk_…)Authenticates the app's event and token writesNerja → AI Connectors → Firebase → your app
Your app id (package / bundle id)Ties the key to your app, so a key leaked from one app is useless in anotherYour app
A Firebase project connected in NerjaNerja sends pushes through your Firebase projectPush setup
Firebase config in the appThe app needs it to obtain an FCM tokengoogle-services.json / GoogleService-Info.plist

End-to-end flow#

// App start to a linked push token
Your app
Nerja SDK
Nerja API
Firebase (FCM)
  1. 1Nerja.init(appKey)
  2. 2request a push token
  3. 3token
  4. 4POST /v1/devices — token + app id
  5. 5identify(user, userHash?)
  6. 6POST /v1/identify — token is now this person's
  1. You connect Firebase in Nerja (service-account JSON).
  2. Your app starts the SDK; the device gets an FCM token and registers it.
  3. The user signs in; your app calls identify — the token is now attached to that person.
  4. A campaign (audience or event) targets that person; Nerja sends through Firebase.
  5. The user taps; the SDK reports it and opens your app at the right place.

App key and app id#

The app key is public (like the web tag key) — it is meant to ship inside the app. It can only write events and tokens, never read your data. Nerja checks the request's X-Nerja-App-Id against the app ids allowed for the key.

Tip

Want to be sure nobody can register devices as someone else? Turn on Require signed user ids — see Signed user ids.

Prefer to talk it through? Book a 30-minute call with the Nerja team.

PreviousPrivacy & consentNext Get the SDK

Something unclear or missing? Email support@nerja.ai and we will improve this page.

on this page

  • Why use the SDK
  • What it does for you
  • What it needs
  • End-to-end flow
  • App key and app id