kony.gms Namespace - In App Updates

The In-App Updates API contains the following API elements:

Constants

Install Constants

Status Code Description
kony.gms.INSTALL_STATUS_DOWNLOADED Indicates that the App Installation is in the downloaded state.
kony.gms.INSTALL_STATUS_CANCELED Indicates that the App Installation is in the canceled state.
kony.gms.INSTALL_STATUS_FAILED Indicates that the App Installation is in the failed state.
kony.gms.INSTALL_STATUS_INSTALLED Indicates that the App Installation is in the installed state.
kony.gms.INSTALL_STATUS_INSTALLING Indicates that the App Installation is in the installing state.
kony.gms.INSTALL_STATUS_DOWNLOADING Indicates that the App Installation is in the downloading state.
kony.gms.INSTALL_STATUS_PENDING Indicates that the App Installation is in the pending state.
kony.gms.INSTALL_STATUS_UNKNOWN Indicates that the App Installation is in an unknown state.

Update Constants

Status Code Description
kony.gms.UPDATE_AVAILABLE Indicates that an update is available for download.
kony.gms.UPDATE_NOT_AVAILABLE Indicates that an update is not available for download.
kony.gms.UPDATE_IN_PROGRESS Indicates that an app update is in progress.
kony.gms.UPDATE_UNKNOWN Indicates that the app update status is unknown.

Common constants

Status Code Description
kony.gms.UPDATE_INFO_RETRIEVED The update information is retrieved.
kony.gms.NO_ACTIVE_NETWORK Network unavailable on the device.
kony.gms.UPDATE_FLOW_CONFIRMED_BY_USER Update flow is confirmed by the user.
kony.gms.UPDATE_FLOW_CANCELLED_BY_USER Update flow is canceled by the user.
kony.gms.RESULT_IN_APP_UPDATE_FAILED Request for Update flow failed.
kony.gms.UPDATE_NOT_ALLOWED_IN_BACKGROUND Update not allowed in the background.
kony.gms.UPDATE_NOT_ALLOWED Returned when the requestForAppUpdate() cannot be invoked.
kony.gms.UPDATE_ERROR Returned when there are install errors. If this status code is returned, the info object will have additional fields updateErrorCode and updateErrorMessage that provides detailed information. For more information, refer Install error codes.
kony.gms.PLAY_CORE_LIBRARY_MISSING Returned when the com.google.android.play:core library is not bundled with the app. Add the supportGooglePlayCoreLib = true entry in the androidbuild.properties file to bundle the Google Play Core library.
kony.gms.GMS_LIBRARY_MISSING Returned when there is Google Play Internal error. For example, the Google Play/Mobile Services library is not linked with the app.
kony.gms.GOOGLE_PLAY_SERVICE_UNAVAILABLE Returned when there are Google Play Connection errors. If this status code is returned, the info object will have an additional GMSErrorCode field that provides detailed information. For more information, refer Connection Result.

Functions

The In-App Updates API contains the following functions, which are part of the kony.gms Namespace.

NOTE:
  • To use the in-app update APIs, you must add the supportGooglePlayCoreLib = true and supportGooglePlayBaseLib = true entries in the androidbuild.properties file.
  • The following APIs will only work in an app that is downloaded from the Google Play store. If you install an app through Quantum Visualizer, and invoke the APIs, the UPDATE_ERROR status code is returned. Follow the steps mentioned here to test an app.