Abappi
19

In-App Updates: Store Update Prompts for React Native

Creator and maintainer

An open-source package for the developers of React Native and Expo apps that tells people when a newer version of the app is in the App Store or Play Store. One component checks the store and opens a ready-made update prompt: a soft one people can put off or skip, or a forced one when an old version has to stop working. Developers can restyle it, rewrite its words or swap in their own design, and on Android the update can run inside the app through Google Play. I created it and I'm its only author: the store checks, the version rules, the prompt, and the Kotlin module behind Android in-app updates.

One phone in the middle showing the update prompt, Update available with the installed and latest versions, What's new, Update, Later and Skip this version, between the two halves of the headline (recreated interface, demo data)
A phone with the Update available prompt open over a shop app, showing installed and latest versions, release notes under What's new, and Update, Later and Skip this version (recreated interface, demo data)

People hear about a new version as soon as it's in the store

The app checks the store on its own and, when a newer version is out, shows a ready-made prompt with what changed.

  • Reads the latest version from the App Store, the Play Store or your own endpoint, and tries the next source when one fails
  • Shows the installed and latest versions side by side, with the release notes under What's new
  • Checks again when people come back to the app, and remembers the answer for a few minutes
  • Understands dates, calendar versions, beta tags and build numbers, and can leave small patch releases alone
  • Looks in a fallback country's store when the app isn't listed in the local one
A phone with the Update required prompt saying this version is no longer supported and to update to a minimum version, with only a red Update button (recreated interface, demo data)

Retire old versions with a forced update

When an old version has to stop, the prompt turns red, shows only Update and can't be closed.

  • Force everyone below a minimum version you set
  • Or force by size of release: every update, major only, minor and up, or your own rule, or let your endpoint flag it
  • A forced prompt has no Later or Skip, and the Android back button doesn't close it
  • Soft updates can be put off for now or skipped until the next version, remembered across launches
  • Turn skipping off when every soft update should be seen
Code passing a dark theme and a custom label to the update prompt, beside a phone showing the prompt in dark mode with Not now in place of Later (recreated interface, demo data)

The ready-made prompt in your style, or your own

Use the built-in prompt in your app's colours and words, or draw your own and keep all the checking behind it.

  • Light and dark mode, following the phone or pinned to one
  • Set colours, corner radius, width and fonts, and swap the icon
  • Change every label, for tone or translation
  • Pass your own prompt, or use the hook, and keep the checking, skipping and refreshing
  • Fake a release in a development build to see every state, without it ever reaching a release build
An Android phone with the update prompt and a spinner on the Update button while Google Play's own update starts, beside the one line of code that turns it on (recreated interface, demo data)

iPhone and Android, each the right way

On Android the update can run inside the app through Google Play; on iPhone, Update opens the App Store page.

  • Download the update in the background while people keep using the app, then install and restart
  • Forced updates use Google Play's full-screen update, others the background one, picked for you
  • Picks up an update left half done, or installs one that already finished downloading
  • Falls back to the store page when Google Play can't help, and on iPhone, where no in-app update exists
  • Try every Google Play outcome with a stand-in Play in debug builds
40+more features in this system, not shown hereI build products like this one, start to finish: mobile apps and the tools behind them that just work, even as your business grows. Got an idea? Let's talk it through.Let's discuss →

Notable contributions

  • Built the store check: App Store, Play Store or your own endpoint, tried in order, with caching, retries and clear errors
  • Built version comparison that reads dates, calendar versions, beta and canary tags and build numbers
  • Built forced updates and skipping: minimum versions, rules by size of release, and skipped versions remembered across launches
  • Built the ready-made update prompt with light and dark mode, theme settings and editable labels, plus a hook for your own design
  • Built Android in-app updates in a Kotlin module, in the background or full screen, with a stand-in Play to test every outcome
  • Built development mocks that can never reach a release build, and an example app with every state of the prompt

Those are the highlights. There's plenty more I've worked on across this project, big and small, and I'm still building on it.