I am currently working on an implementation of the new "in-app update" library of Google.
According to the documentation, we can prompt a "flexible" or an "immediate" UI to the user. In both case, it will launch the download of the update (blocking or not).
If during this download I kill my app and them re-launch it before the end of the download, when I ask for the "update availability" the API gives me the answer UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS
.
The documentation mentions this availability only in the case of an immediate update so we have to restore the fullscreen UI with the following code :
appUpdateManager.startUpdateFlowForResult(appUpdateInfo, IMMEDIATE, this, 1000)
The matter is that I also have this availability when a flexible update is downloading and in this case I do not want to start a fullscreen downloading UI because it's a flexible update...
Is there any way to know if we are in a flexible or an immediate update when the API returns UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS
as the availability ?
Thank you in advance for your help!