Product Benefits Pricing Guides Docs About Contact us Try it out
Analytics tools

Amplitude Kotlin Remote Config Retry Tracking

Amplitude Kotlin remote config tracking: measure fetch retries and stored settings after SDK 1.37.0 persists config and keeps identity.

· 3 min read

Remote configuration decides what your analytics SDK does: which events it sends, how often, and to where. If a fetch fails on a weak mobile connection, the app can run on defaults and nobody notices. Data then arrives in the wrong shape, or not at all, for the users with the worst networks.

Amplitude Kotlin 1.37.0 targets this. It persists standalone remote config and retries fetches, preserves an explicit JSON null in remote config, keeps identity properties during interrupted saves, and avoids disk reads during Android initialisation. Each change is small. Together they alter how reliable your data is on first launch and after a crash.

You should not take that on trust. Measure it.

Data Points to Track

  • config_fetch_attempts per session
  • config_fetch_success and config_fetch_failure counts
  • config_source: network, stored copy or default
  • config_age_hours when the stored copy was used
  • config_fetch_latency_ms
  • identity_property_loss count after force-stops
  • sdk_init_time_ms on Android, before and after the upgrade
  • amplitude_kotlin_version and app_version
  • network_type and device_model
  • events_sent_per_session by config source

Setup Steps

  1. Record a baseline for init time, fetch failures and lost identity properties on your current version.
  2. Upgrade to 1.37.0 in a staging build.
  3. Log the config source each time the SDK starts, using a custom property on your first event.
  4. Test offline. Launch once online, switch to airplane mode, force-stop the app and launch again. Confirm the stored config is used.
  5. Test interruption. Kill the app mid-session and check that user properties survive.
  6. Compare init time on low-end devices against your baseline.
  7. Release to a small share of users and watch the config source split for three days.

Actionable Insights

A high share of sessions running on default config means fetches are failing. Break that down by network type. If it clusters on mobile data, the retry change should help, and you should see the share fall after release.

Check config age. A stored copy that is days old is better than defaults, but if it is weeks old, your remote changes are not reaching a part of your audience. Decide how old is too old and alert on it.

Identity loss is the quiet one. If user properties used to vanish after a crash, segments built on them undercounted certain users. Expect some cohorts to grow slightly after the upgrade, and annotate your charts so the change is not mistaken for real growth.

Last, check init time. Fewer disk reads should lower it, especially on older phones. If it rises instead, look at what your own code does at start-up.

Common Mistakes to Avoid

Do not treat a successful upgrade as proof the problem is gone. Test on the slowest device and the worst network your users have, not on a fast office connection. Retry logic only shows its value when the first attempt fails.

Avoid changing several analytics settings in the same release. If you alter sampling, event names and the SDK version together, you cannot tell which change moved your numbers. Upgrade the SDK on its own, then adjust remote settings a week later.

Lastly, write down the release date in your analytics notes. Identity handling fixes can shift cohort sizes, and a dated note saves your team from chasing a trend that is really a measurement change.