In-App Update API showing UPDATE_NOT_AVAILABLE while testing on debugging device

后端 未结 12 948
攒了一身酷
攒了一身酷 2020-12-29 12:22

I am trying to integrate the new In-App Update API but I cannot able to test it\'s implementation. Seems like my code is fine therefore I read the Troubleshoots and am not a

12条回答
  •  既然无缘
    2020-12-29 12:55

    First, you'd have to publish your app to Google Play. Make sure that:

    1. The version code you published is higher than the one you're going to test the updates with, because if not, then it wouldn't recognize it as an update. Then let the Google Play refresh its cache for quite some time (in my case, I've waited for 12 hours before I was able to make it work for the first time).
    2. You've signed both apks with the same signature.

    If you want to have a working demo app, I've uploaded a git repository with a lower version code than the one that I've published in Google Play.

提交回复
热议问题