Product Benefits Pricing Guides Docs About Contact us Try it out
Performance

Amplitude Engagement React Native Async API Tracking

Amplitude Guides and Surveys 4.0.1 makes React Native engagement calls async. Track init timing and forwarded events so nothing is dropped.

· 3 min read

Guides and surveys only work if the SDK boots before your user reaches the screen that should trigger them. If initialisation is slow, or events are forwarded before the SDK is ready, prompts never appear and nobody notices.

Amplitude Guides and Surveys mobile SDK 4.0.1 (21 September 2026) makes the React Native engagement methods boot, enable, disable and forwardEvent asynchronous. They now return a promise but stay fire-and-forget, so most code can ignore the result. Engagement initialisation also runs asynchronously instead of blocking the main thread. Version 4.1.0 (8 October 2026) adds AmplitudeCardEmbedView for inline cards and moves the settings network check to the background. Version 4.0.1 also fixes a crash when forwardEvent received an event without an event_id.

Why This Matters

Async calls remove a launch-time freeze, which is good. The cost is that ordering is no longer guaranteed. An event forwarded a few milliseconds early can be lost, and a failed boot can pass silently.

Data Points to Track

  • engagement_sdk_version and app_version
  • boot_started_at and boot_completed_at
  • boot_duration_ms
  • boot_status (success, error, timeout)
  • forward_event_count per session
  • forward_event_rejected_count
  • events_before_boot_count
  • guide_triggered and guide_shown counts, to find the gap
  • time_to_first_launch_screen_ms

Setup Steps

  1. Upgrade the Guides and Surveys SDK to 4.0.1 or later, and 4.1.0 if you want card embeds.
  2. Await boot once during app start, and catch errors.
  3. Log boot_duration_ms and boot_status as an analytics event.
  4. Wrap forwardEvent so rejected promises are counted rather than ignored.
  5. Queue events raised before boot completes, and replay them afterwards.
  6. Compare cold start time on a mid-range Android device before and after the upgrade.
  7. Alert when boot_status errors exceed a small share of sessions.

Actionable Insights

Compare guide_triggered with guide_shown. A growing gap points to boot failures or events arriving too early. Segment by device tier, since slow phones are the most likely to miss the window.

Check start time. The async change should lower main-thread blocking, so your launch metrics should improve or stay flat. If they worsen, something else in your boot path is the cause.

Look at rejected forwardEvent calls by event name. A single noisy event often accounts for most of them and is easy to fix.

Common Mistakes to Avoid

Do not assume fire-and-forget means safe to ignore. Count failures. Do not await forwardEvent on the UI path, as that undoes the benefit.

A Simple Rollout Plan

Start with a staged release. Ship the upgrade to ten percent of users and watch boot_status and time_to_first_launch_screen_ms for three days. If errors stay low and launch time holds, widen the rollout.

Keep one dashboard that shows boot duration, forwarded events and shown guides together. When all three move at once, the cause is almost always the SDK change. When only one moves, look at your own code first.

Finally, write the expected behaviour into your tracking plan: which events are forwarded, when boot must finish, and who owns the alert. This stops the next engineer from reintroducing a blocking call by accident.