In-app updates (Android Dev Summit '19)

Android Developers · 28K views · 2019 · 18:44

Open on YouTube

Software (other)Software practice, open source & careerstalkdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering how flexible and immediate in-app updates work and to point out that an update priority feature, readable through the Play Core API, was announced in the talk.

Recommended by 4 people across 2 different months, 2019 to 2020.

What it is

A talk from Android Dev Summit 2019 by Google Play engineers on the In-app updates API, which lets apps prompt users to update while they are using the app. It covers what changed since the Google I/O launch, including flexible versus immediate updates and the upcoming update priority signal.

What people said

Recommends Pierre · 2019-11 · Stack Overflow · on “How to set type of update "In App Update" when I update the app in google play console?”

Edit: The Play Core API now supports checking for the priority of updates. See [LINK] I think you are misunderstanding the use of this feature. For each newer version available, you can update it in the app both ways. "Flexible" means that the update will happen in the background and the user can continue using the app while the download happens and you get to let the user choose when to install it. "Immediate" means that the update happens in the foreground, blocking the user to use the app while the download and install happens (to be used for critical updates). You can learn more about this in this recent video of a talk at the Android Dev Summit 2019: [this video]

Recommends Vishal Patel · 2019-11 · Stack Overflow · on “Testing in app update with Internal app sharing”

I just started research on the inApp update. all code done as per google document [LINK] appUpdateManager.getAppUpdateInfo().addOnSuccessListener(new OnSuccessListener<AppUpdateInfo>() { @Override public void onSuccess(AppUpdateInfo result) { tvPackageName.setText("packagename : "+result.packageName()); tvCurrentVersionCode.setText("Current version: " + BuildConfig.VERSION_CODE); tvAvailableVersion.setText("available version : "+result.availableVersionCode()); tvUpdateAvailibility.setText("update availibility : "+ result.updateAvailability()); tvInstallStatus.setText("install status: "+ result.installStatus()); if (result.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE && result.

Recommends pfmaggi · 2019-11 · Stack Overflow · on “How to test Android App on Chromebook in kiosk mode”

The only option for managed devices (that you cannot put in Dev mode) is to install application through the Play Store. You can use internal app sharing to install a debug build of your application. Here is a video [this video] that explains what is Internal App Sharing and how you can use to test an application. You've to setup the play console to be able to use it. You can take a look at the documentation [LINK] for more information.

Recommends Blundell · 2020-02 · Stack Overflow · on “How can we implement AppUpdateType FLEXIBLE as well as IMMEDIATE in Google Support in-app updates? Does Google provide Anything in Playstore Console?”

Google Play In App Updates allow you to notify the user that an update is available through the playstore. IMMEDIATE is to signify that the PlayStore is to block the use of your app and ensure the update happens immediately. FLEXIBLE means that the update can be downloaded in the background and your app can continue to be used until the update is ready to be installed. Using IMMEDIATE or FLEXIBLE is a choice you make in your application for how you want the Playstore to behave. (It is not something that is sent to your app as an instruction from the PlayStore.) Ref: Docs [LINK] There is this video from Android Developer Summit 2019: [this video] That explains an update to this API will be coming

Cites Akhil Soman · 2019-11 · Stack Overflow · on “Android - In-App Updates. Where to specify whether an Update(new apk uploaded to playstore) should be an IMMEDIATE or FLEXIBLE type update?”

Currently at the time of writing this answer, there is no option in playstore to specify whether an update(new apk) is IMMEDIATE or FLEXIBLE. But one can implement it via the following methods. Since both isUpdateTypeAllowed(AppUpdateType.FLEXIBLE) isUpdateTypeAllowed(AppUpdateType.IMMEDIATE) return true for a new update, you can create an API which returns whether there is a new update based on the applications current version code/name, and whether it should be IMMEDIATE/FLEXIBLE. Use Firebase Remote config for the above purpose. Return a value that specifies the update type. Refer this answer [LINK] . There are new features or signals coming to playstore(at the time of writing) that can s

Cites Ronak Doshi · 2019-11 · Stack Overflow · on “How to configure Flexible OR Immediate release for android in app updates?”

You have to write your own logic whether you want Flexible or Immediate Update as there is no such functionality in Google Play Console for now. I found this [LINK] on Google Issue Tracker Soon you'll be able to specify an in-app update priority for your app release, which will be made available through the in-app update API. Please see this Android Developer Summit talk for more details: [this video]

Cites Chintan Soni · 2019-12 · Stack Overflow · on “In-App Updates : decide a strategy to choose between Flexible and Immediate update”

So, they have heard us and they are soon coming up with the solution as heard from Android Dev Summit '19. Problem: appUpdateManager.appUpdateInfo.addOnSuccessListener{ info -> if(info.updateAvailability == UpdateAvailability.UPDATE_AVAILABLE){ // Which trigger should I trigger: Flexible or Immediate } } As developers, we have 2 signals to decide our strategy: 1. Priority Signal: represents how important an update is. The priority value is defined by us while making a release. This priority value is then exposed to our app via Play Core Api. Example: appUpdateManager.appUpdateInfo.addOnSuccessListener{ info -> if(info.updateAvailability == UpdateAvailability.UPDATE_AVAILABLE){ if(info.update

Cites Saqib · 2020-02 · Stack Overflow · on “How to work with Android's in-app update API?”

I did a little research after commenting and I find out that they are actually planing to implement such feature. They will soon introduce update "Priority" feature in developer console and play core API would be able to read that priority. [this video]

Cites Devrath · 2020-04 · Stack Overflow · on “Performing silent update without play services in android”

I am using a application which cannot use google play services I cannot root the device I need to update the app silently without user interaction in the background What I found : I found this resource called InApp Update [this video] but it uses play services What is the best way to perform silent update in background Does android provide any such features ?