I’m trying to add Google Play Core flexible update to the app i’m working on. As stated in the documentation in Android website app should restart automatically to main activity after completing the update process when you call completeUpdate method in foreground. When I test this in different devices, app in some devices restart automatically but in others app closes and do not reopen. There is nothing to distinguish between app reopened and app didn’t open devices. For an example, I tested app with samsung A32 device and app restarted then tested with samsung s20 and app didn’t restart. Both devices have Android 11 OS version.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
I faced this issue and after 2 days I added
to the launcher Activity And I used
From ProcessPhoenix library in OnActivityResult And then the app restarted after updating.
You can use launch mode = single task and it will fix the problem