In-app update for React Native apps
In-app update module is used to show new version available alerts in your app as per the configuration done in the Apptics web console. Refer to the User Guide to do the configuration in the web console.
Show the app update popup
- Use the below snippet to check for updates and to show the update popup.
Copied
- Make sure to call Apptics.init before calling showVersionAlertPopup.
- Add the below colors to your app theme in the main/res/values/styles.xml.
Copied
Build the app update flow
- Use checkForUpdate method to obtain a map of data as configured in the web console.
- With the data, you can build your own custom app update popup.
Copied
- The above method will return a NULL if there is no update available.
- Use the below to construct the custom popup.
Copied
- Send action from your custom built pop-up for Apptics to show the stats.
Copied