How Do I implement both flexible and immediate in-app update in app at once and how do i set which type of update i want the user to see.
Asked
Active
Viewed 386 times
1
-
does this helps? https://developer.android.com/guide/app-bundle/in-app-updates – pz64_ Jul 05 '19 at 08:14
-
@pz64_ I have already implemented immediate update but actually I wanted to implement both type of updates, as per needs... – Akash Sarkar Jul 05 '19 at 08:25
2 Answers
2
I found a solution for this problem which I have implemented for my project, I am using an API to send me if I want to give immediate or flexible update and based on that I have used if-else to run the desired code.

Akash Sarkar
- 101
- 7
0
It is up to the user to decide which type of UPDATE they want. It can also be configured via the remote config variable to decide which type of update they want.
It always returns true whether update type is FLEXIBLE or IMMEDIATE
isUpdateTypeAllowed(AppUpdateType.FLEXIBLE)
isUpdateTypeAllowed(AppUpdateType.IMMEDIATE)
I have already integrated in-app update API in Many Mobile Application and It is running all perfect now. The documentation had this ambiguity.
So you should write your own logic whether you want Flexible or Immediate Update via remote config or server.

mini developer
- 302
- 3
- 7