google-play-core

Play Core In-App Review API not showing the Review Activity

你离开我真会死。 提交于 2021-01-20 14:12:32
问题 I'm trying to utilize the Review API (Play Core library 1.8.0) from Google which was just released yesterday. See https://developer.android.com/guide/playcore/in-app-review I followed the troubleshooting section carefully, I made sure the app is downloaded from the internal testing track, my account does not have a review on the app, the app is in the library of that user etc.. I even tried with a completely new account, but every time the com.google.android.finsky.inappreviewdialog

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

How to start an Activity in a dynamic feature module?

那年仲夏 提交于 2020-01-25 08:58:26
问题 When typing to start an Activity within a dynamic feature module trough an Android Studio run-configuration, I get the following warning: The activity 'SomeActivity' is not declared in AndroidManifest.xml . (because it is being declared in the AndroidManifest.xml of the dynamic feature module). For reference, this is the library being used: // https://developer.android.com/guide/app-bundle/playcore api "com.google.android.play:core:1.6.4" The run configuration shows & deploys both modules,

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

Is there a way to understand what install error codes actually mean?

删除回忆录丶 提交于 2019-12-13 13:23:34
问题 I'm trying out the in-app update feature and I'm getting a FAILED install status and a -100 install error code. Is there any way for me to know what may be causing this? I implemented the flexible in-app update and I'm logging each step. Followed Android devs tutorial here I'm generating an apk with a lower version code as the one in Google Play and signing using the same signing key. 2019-07-24 16:21:01 +0100 InAppUpdates [String#-666477938] [T# main] | install error : 0 2019-07-24 16:21:01

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?

Verify non-Google Play app installs using Play core library

时间秒杀一切 提交于 2019-12-05 21:58:17
问题 Some context: Most of us may have faced this ResourceNotFoundException when we migrated to Android app bundle release method. It is evident that the issue is because of Side-loading the app. Reference here. Google recently announced solution to this problem. Using play core library we can identify whether the app is side-loaded or not (Identifies the missing split apks). If the app is side-loaded it shows " Installation failed " popup and redirects to play store, where user can properly