Check for Update

Call the following function to check if a new version of your app is available. If possible, we recommend running this check during the game's boot process.

UpdateController.Instance.CheckForUpdates();

This method triggers the onUpdateStatus callback and passes an UpdateStatusModel object as an argument. The object includes the following properties:

PropertyTypeDescription
isUpdateAvailableBooleanWhether an update is available.
versionNameStringThe name of the new version, if available.
versionCodeInt32The code of the new version, if available.
downloadUrlStringThe download URL for the new version. This link is valid for 30 minutes.
typeStringThe type of update, SOFT or HARD.
messageStringA message to display to the player.
fallbackUrlStringA fallback URL for players to download the APK manually. Used in case of internal errors or update installation failures.
fallbackMessageStringA fallback message to display to the player.
packageNameStringThe package name of the updated version.