GooglePlay: The item you requested is not available for purchase

僤鯓⒐⒋嵵緔 提交于 2019-12-02 00:05:58
Stafford Williams

12 hours after my last test this was mysteriously working. The symptoms were:

  • Purchase unavailable if the application was installed to the device via ADB (release & signed)
  • Purchase available as normal if the application was installed via Google Play (download)

What exactly fixed this i'm unsure. Prior to waiting 12 hours I;

  • Switched from using IInAppBillingService directly to using Google's IABHelper. The immediate effect was still product unavailable for purchase, however the text was now displayed in red rather than black (what?) and the DFinsky error changed to subtype 4; PurchaseError{type=3 subtype=4}. I also note that i was not using base64EncodedKey when using IInAppBillingService directly.
  • Switched to multiple APKs (probably red-herring)
  • Started an alpha test (was previously using a beta test only)
  • Created a new gmail account and added it to testers

Even after all these changes, the issue was still occurring, so I went to bed, woke up this morning and with no further changes it just worked. FML.

App must be installed from Playstore via opt-in URL. this will help the app to authorize from LICENSING & IN-APP BILLING(Base64-encoded).

Edit : We can test the signed apk on device by installing using adb tool. and

1.The android:versionCode and android:versionName attributes values in the AndroidManifest.xml of the application that you are installing matches the values of your APK in the Developer Console.

2.Your application is signed with the same certificate that you used for the APK that you uploaded to the Developer Console, before installing it on your device.

http://developer.android.com/training/in-app-billing/test-iab-app.html

Opt-in url did it for me. Send that to your user - it registers the user with their own play store app. That's the middle man that seems to need to be notified that the person is a tester.

After almost days of trying everything we accidentally made it work. We had to "LEAVE THE PROGRAM" (link on the opt-in page) and RE-enter the program again. Then it finally worked...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!