In App Update Api Always Returns 1 (update_not_available)
Solution 1:
Contrary to other answers that say that test build must be in release mode or has to be uploaded to Play Console Test track - that is all wrong, nowhere in the documentation there is any mention of any of that.
If you meet requirements API >= 21 && have internet connection and face this issue, do the following to resolve:
- Confirm that your test build has lower version code than what's in production
- Clear Storage & Cache for PlayStore app
- Open play store using account that has previously downloaded the app
- Navigate to your app listing in PlayStore and confirm that "Update" button is showing.
It seems like a caching issue with PlayStore and above steps refresh it. After that you'll be able to test In App Updates even in debug mode.
Solution 2:
What is helping me during testing is opening Google play store app and open "My apps & games" position from drawer menu.
Make sure on "Updates" tab your tested application appears in "Updates Pending".
That library in my opinion does not check on some google api is there any update available, but is checking some kind of google play store app cache
hope it helps cheers Wojtek
Solution 3:
Make sure:
you install Signed Release version for testing
with the same applicationId as in Play Store (your flavour doesn't have any applicationIdSuffix)
and versionCode is lower
and your app is released (as a tester you can download it)
Solution 4:
I also faced same issue and none of the above solutions not worked. What I understand is if the versionCode
is incremented in build.gradle, then it will identify as an update.
I followed below sequence.
- Asume your current
versionCode
inbuild.gradle
is10
andversionName
is1.10
and your app supports in-app updates(required code to check for the update) - Build the debug apk
- Upload it to https://play.google.com/console/internal-app-sharing
- Install the app in the test device with the help of app download link
- Open the app at least once in test device
- Now change
versionCode
to11
andversionName
to1.11
in appbuild.gradle
- Build debug app, upload it to the internal-app-sharing and get the app download link
- In your test device open the second dowload link at least once(Just open - do not click on the Update button)
- Now open the app the app, It will show App update dialog.
Solution 5:
Here is how I test my in-app update and it's confirmed working for me everytime I rollout.
I use internal test track and increment version code.
use Google play store to install a version of the testing app (I used internal test track rollout)
rollout another version with higher VERSION CODE on Play Console (the same internal test track)
close both testing app and Google play store (not just back to home, use recent key and swipe them off)
open the Google play store and ensure that testing app has an update available (you can check it under "My Apps & Game" > Installed)
now open the testing app and check for UPDATE_AVAILABLE
This works for me almost immediately after rollout
Post a Comment for "In App Update Api Always Returns 1 (update_not_available)"