Problems with the Android Update-In-App

Asked

Viewed 14 times

0

Come on, you guys... Has anyone used the update-in-app for Android playcore? I can call the update dialog, it downloads the version, restarts the app, but it n updates from vdd to new version. Follow the code of my method:

private fun appUpdatePlayCore(updateType: Int) {
    val appUpdateManager = AppUpdateManagerFactory.create(requireContext())
    val appUpdateInfoTask = appUpdateManager.appUpdateInfo
    appUpdateInfoTask.addOnSuccessListener { appUpdateInfo ->
        if (appUpdateInfo.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE
            && appUpdateInfo.isUpdateTypeAllowed(updateType)
        ) {
            appUpdateManager.startUpdateFlowForResult(
                appUpdateInfoTask.result,
                updateType,
                requireActivity(),
                REQUEST_CODE_UPDATE
            )
        }
    }
}
  • Guys, he can only complete the entire process when he downloads a direct version of the store (internal, closed), and then makes another direct version available through the store. In this case, you can use the test channels.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.