In-app update for Flutter 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.
- Before you begin, make sure that Apptics is integrated into your project by following the Integration Guide.
Show the app update popup
- Call the method checkAndUpdateAlert to check for updates and to show the update popup.
Copied
Note:
- The above-mentioned method should be invoked after setting the theme and creating the navigator in the app.
- Flutter in-app updates do not support Material3.
Build the app update flow
- The below method will return a Map<string, dynamic?>, that allows to obtain the data for the popup UI.
- 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.
- The response type is based on the category string number such as:
- 1 is normal update data.
- 2 is non-supported OS data.
- Extract the key-value pairs listed below to create your custom UI.
- The different action methods are onClickUpdate, onClickReminder, onClickIgnore, onClickNonSupportAlert, and onSendImpressionStatus.
- Use the below to construct the custom popup.
Copied
Show full
Show less