Obsolete
Status Update
Comments
al...@google.com <al...@google.com> #2
Thanks for your report,
At the moment In App Updates are not supported on Android TV. So the error you receive is working as intended.
Sorry for the missing documentation, we will fix that asap.
At the moment In App Updates are not supported on Android TV. So the error you receive is working as intended.
Sorry for the missing documentation, we will fix that asap.
Description
com.google.android.play.core.install.InstallException: Install Error: -3
It isn't obvious what "-3" means... But after spending time looking I assume the "-3" means ERROR_API_NOT_AVAILABLE (from
Does this mean the Google Play Services / Google Play Store on Android TV don't support "In-app Updates"?
The documentation "Support in-app updates" (
Am I doing something wrong?
=== Simple code snippet ===
The following is a small snippet of code that I put in an Android TV app (the above exception happens in the OnFailureListener):
private fun checkUpdate() {
val appUpdateManager = AppUpdateManagerFactory.create(this)
val appUpdateInfoTask = appUpdateManager.appUpdateInfo
appUpdateInfoTask.addOnFailureListener { exception -> Log.e("UPDATE", "Exception: $exception")}
appUpdateInfoTask.addOnSuccessListener { appUpdateInfo ->
if (appUpdateInfo.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE && appUpdateInfo.isUpdateTypeAllowed(AppUpdateType.IMMEDIATE)) {
Log.i("UPDATE", "Request the update")
}
}
}