Skip to content Skip to sidebar Skip to footer

In App Update Api Always Returns 1 (update_not_available)

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.xx

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:

  1. you install Signed Release version for testing

  2. with the same applicationId as in Play Store (your flavour doesn't have any applicationIdSuffix)

  3. and versionCode is lower

  4. 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 in build.gradle is 10 and versionName is 1.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 to 11 and versionName to 1.11 in app build.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.

  1. use Google play store to install a version of the testing app (I used internal test track rollout)

  2. rollout another version with higher VERSION CODE on Play Console (the same internal test track)

  3. close both testing app and Google play store (not just back to home, use recent key and swipe them off)

  4. open the Google play store and ensure that testing app has an update available (you can check it under "My Apps & Game" > Installed)

  5. now open the testing app and check for UPDATE_AVAILABLE

This works for me almost immediately after rollout

Android In-App Update Api showing UPDATE_NOT_AVAILABLE

Post a Comment for "In App Update Api Always Returns 1 (update_not_available)"