Skip to content

Instantly share code, notes, and snippets.

@sakshampruthi
Created June 28, 2022 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakshampruthi/96272af48a2d0ad448ec7c4f0e9ed57f to your computer and use it in GitHub Desktop.
Save sakshampruthi/96272af48a2d0ad448ec7c4f0e9ed57f to your computer and use it in GitHub Desktop.
appUpdateManager.startUpdateFlowForResult(
// Pass the intent that is returned by 'getAppUpdateInfo()'.
appUpdateInfo,
//'AppUpdateType.FLEXIBLE' for flexible updates or 'AppUpdateType.IMMEDIATE' for immediate update.
AppUpdateType.IMMEDIATE,
// The current activity making the update request.
this,
// Include a request code to later monitor this update request.
IN_APP_UPDATE_REQUEST_CODE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment