in-app-update

How to know the AppUpdateType at the origin of the DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS update availability?

大憨熊 提交于 2021-02-08 04:47:56
问题 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

In-App Update gives InstallException (ERROR_API_NOT_AVAILABLE)

↘锁芯ラ 提交于 2020-05-24 20:14:15
问题 Implemented in-app update feature, using the following code snippet: private void showInAppUpdateDialog(boolean isMandatoryUpdate) { Task<AppUpdateInfo> appUpdateInfoTask = appUpdateManager.getAppUpdateInfo(); appUpdateInfoTask.addOnSuccessListener(appUpdateInfo -> { if (appUpdateInfo.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE || appUpdateInfo.updateAvailability() == UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS) { int appUpdateType = isMandatoryUpdate ? IMMEDIATE

In-App Update gives InstallException (ERROR_API_NOT_AVAILABLE)

跟風遠走 提交于 2020-05-24 20:08:39
问题 Implemented in-app update feature, using the following code snippet: private void showInAppUpdateDialog(boolean isMandatoryUpdate) { Task<AppUpdateInfo> appUpdateInfoTask = appUpdateManager.getAppUpdateInfo(); appUpdateInfoTask.addOnSuccessListener(appUpdateInfo -> { if (appUpdateInfo.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE || appUpdateInfo.updateAvailability() == UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS) { int appUpdateType = isMandatoryUpdate ? IMMEDIATE

InAppUpdate not work proper ,the download process are done successful but app not install

时间秒杀一切 提交于 2020-02-03 10:07:27
问题 I implement Google in-app update on my app, I already added in my other app its work properly and its update my app also. but in my new app, I add its to same as oldest apk its follow all process and download also but not update the app.if anyone implements the proper in-app update code then please share and help. can anyone tell ? its google side bug? I already try all links and websites of in-app update reference for it. Thanks in advance. 回答1: Please try below code private AppUpdateManager

In App Update API always returns 1 (UPDATE_NOT_AVAILABLE)

和自甴很熟 提交于 2020-01-23 02:38:10
问题 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 versionCode rootProject.ext.vCode versionName rootProject.ext.vName testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } Last upload version(Live in Playstore) vCode = 5 vName = "1.0.4" project gradle (downgrade it for the testing) vCode = 4 vName = "1.0.3"

How to solve install status code -100 while working with In-App update in Android?

谁说胖子不能爱 提交于 2020-01-05 04:09:13
问题 I'm working with In-App update from here: https://developer.android.com/guide/app-bundle/in-app-updates I have successfully implemented it in my app. My app is already in playstore: https://play.google.com/store/apps/details?id=com.tekitsolution.remindly for Testing this implementation, I decreased version in my project and I implemented in Splash Activity. So, I got the update screen, I click on update and it started downloading. After completing the download, it is again coming same page to

Android In App Updates - Not able to detect the update in AppUpdateInfo

大兔子大兔子 提交于 2019-12-22 18:19:32
问题 Some log statements are thrown when we use, Task<AppUpdateInfo> appUpdateInfoTask = appUpdateManager.getAppUpdateInfo(); appUpdateInfoTask.addOnSuccessListener(appUpdateInfo -> { 2019-06-13 18:30:40.556 28375-28375/com.marsplay.debug I/PlayCore: UID: [10312] PID: [28375] AppUpdateService : requestUpdateInfo(<"package name here">) 2019-06-13 18:30:40.556 28375-28584/com.marsplay.debug I/PlayCore: UID: [10312] PID: [28375] AppUpdateService : Initiate binding to the service. 2019-06-13 18:30:40

Android, InstallException occurs when I use in-app updates

。_饼干妹妹 提交于 2019-12-19 11:06:26
问题 In Google I/O 2019, In-app update is added newly. So I am trying to use it following the document: https://developer.android.com/guide/app-bundle/in-app-updates But it sent an InstallException like: com.google.android.play.core.tasks.RuntimeExecutionException: com.google.android.play.core.install.InstallException: Install Error: -6 at com.google.android.play.core.tasks.k.getResult(Unknown Source:18) at com.eastriver.workingtimer.ui.MainActivity$onCreate$1.onComplete(MainActivity.kt:35) And my

How can I test In-app updates in Android?

痞子三分冷 提交于 2019-12-18 14:54:30
问题 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 result = it.result if (result.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE && result.isUpdateTypeAllowed(AppUpdateType.FLEXIBLE)) { info("should show update") appUpdateManager.startUpdateFlowForResult( result, AppUpdateType.FLEXIBLE, this

inappupdate not available after skipping installation

偶尔善良 提交于 2019-12-13 03:30:56
问题 When Users downloads the app via Flexible app update appUpdateManager?.startUpdateFlowForResult(it, AppUpdateType.FLEXIBLE, activity, REQUEST_CODE_FLEXI_UPDATE) but forgets or accidentally skips to click the restart app button which does following: appUpdateManager?.completeUpdate() Then app update is not available. Even I tried with clear app data, it doesn't work. Looks like once app is downloaded via inappupdate and skips installation, you're stuck, it doesn't ask again. appUpdateManager?