0

I couldn't find it in the documentation of AppUpdateManager, but I hope it's possible. The question is how to enable user to cancel the download of the update?

In particular when the requestUpdateFlow() returns AppUpdateResult.InProgress.

Nominalista
  • 4,632
  • 11
  • 43
  • 102

1 Answers1

0

In the case of flexible there is no direct way to cancel the update, user have to force stop the app or turn off the internet, so in this case, you will get the result RESULT_CANCELED on onActivityResult.

Amjad Alwareh
  • 2,926
  • 22
  • 27
  • Actually, when you turn off the internet, you won't get result `RESULT_CANCELED`. Instead the `InstallState` should change. – Nominalista Apr 16 '20 at 11:01