Questions tagged [in-app-update]

Use tag for questions addressing in-app updates in Android (Play Core library feature)

In-App updates is a Play Core library feature that introduces a new request flow to prompt active users to update your app.

185 questions
55
votes
7 answers

How to work with Android's in-app update API?

I recently came across a new kind of app update flow which has provided by Google Play API. I liked this seamless flow to update an Android application. I observed the below-mentioned steps in the Hotstar app. A card popped up from the bottom…
pratiked
  • 1,712
  • 1
  • 11
  • 18
44
votes
7 answers

How to set update priority for a new android release

I have been trying to implement the Google’s new in-app updates and I am stuck at a point. The issue is first, how can the developer specify the type of update i.e. flexible or immediate while releasing a new update of the app. Secondly, if it's for…
abhijith em
  • 461
  • 1
  • 4
  • 6
43
votes
14 answers

How can I test In-app updates in Android?

Recently, Google introduced 'in-app updates' in Google I/O 2019. So I am trying to use it. val appUpdateManager = AppUpdateManagerFactory.create(this) val appUpdateInfo = appUpdateManager.appUpdateInfo appUpdateInfo.addOnCompleteListener { val…
yoonhok
  • 2,575
  • 2
  • 30
  • 58
23
votes
5 answers

What purpose does appUpdateInfo.isUpdateTypeAllowed (AppUpdateType.IMMEDIATE) serve in Android In-App Update API?

I have been following In-App update API in Android for quite some time now and I am unable to find any relevance of the following…
Abhishek Luthra
  • 2,575
  • 1
  • 18
  • 34
21
votes
7 answers

In-App Update gives InstallException (ERROR_API_NOT_AVAILABLE)

Implemented in-app update feature, using the following code snippet: private void showInAppUpdateDialog(boolean isMandatoryUpdate) { Task appUpdateInfoTask = appUpdateManager.getAppUpdateInfo(); …
Umang Kothari
  • 3,674
  • 27
  • 36
20
votes
6 answers

In App Update API always returns 1 (UPDATE_NOT_AVAILABLE)

I am using In-App Update API in the application for Update Application while the new version is available in play store. module gradle defaultConfig { applicationId "xxx.xxxxx" minSdkVersion 21 targetSdkVersion 28 …
Mehul Kabaria
  • 6,404
  • 4
  • 25
  • 50
20
votes
12 answers

In-App Update API showing UPDATE_NOT_AVAILABLE while testing on debugging device

I am trying to integrate the new In-App Update API but I cannot able to test it's implementation. Seems like my code is fine therefore I read the Troubleshoots and am not able to understand 2 points in this document Make sure that the app that you…
gautam
  • 1,701
  • 2
  • 17
  • 33
18
votes
3 answers

In-app updates check whether it is AppUpdateType.FLEXIBLE or AppUpdateType.IMMEDIATE

Is there any option available in the playstore console to configure this value? Here is the official doc. code: // Creates instance of the manager. AppUpdateManager appUpdateManager = AppUpdateManagerFactory.create(context); // Returns an intent…
SANAT
  • 8,489
  • 55
  • 66
16
votes
4 answers

Alternative to onActivityResult for startUpdateFlowForResult

What is the alternative to get callback for startUpdateFlowForResult in InAppUpdates instead of onActivityResult since it is deprecated?
16
votes
1 answer

java.lang.reflect.InvocationTargetException while doing in app update

I have integrated the in-app updates feature by Google Play Core library using this link. I am using immediate update option because we make various critical bug fixes regularly which are important to update. Here are the cases when app doesn't…
Divya Gupta
  • 494
  • 8
  • 24
14
votes
3 answers

How to force users to update app from play store in Flutter using in_app_update

I want the users of my app to always have the latest version. If they don't have the latest version, it should download the latest version from play store first as shown in the image. I found a package called Upgrader but this just gives a…
Md Azharuddin
  • 1,346
  • 1
  • 9
  • 30
13
votes
3 answers

Flutter AppUpdateService linkToDeath

I have been trying to add the in app update feature to make the user update the app when there is a new update available in the playstore. I am using the package in_app_update. But it keeps throwing this error, I/PlayCore( 8420): UID: [10378] PID:…
Ratnadeep
  • 1,125
  • 1
  • 15
  • 30
11
votes
1 answer

In-App update (IMMEDIATE) not restarting an app

Facing an issue with IMMEDIATE app update mode. After successful completion of app update, everything is closed and not restarting the app. That is the issue. But android documentation says: A full screen user experience that requires the user to…
sj.94
  • 123
  • 1
  • 5
11
votes
2 answers

In App update not working for app bundle apk

I have implemented recently launched In-App update API in my android app. When I build apk and test this functionality it works fine. ( I have uploaded apk with higher version with beta track). But when I build app bundle and upload the app bundle…
Mangesh Kadam
  • 587
  • 5
  • 19
10
votes
0 answers

How to get handle update result of in-App updates

Issue, 'onActivityResult(Int, Int, Intent?): Unit' is deprecated. Deprecated in Java As per in-app update docs, the given method requires onActivityResult but that is deprecated. I can't find any details on how to use registerForActivityResult for…
1
2 3
12 13