6

I'm programming in-app billing function in my app for ads free version by using google in-app billing library 1.0. And I've gone through all stages of here codelab until now. However, I alway meet this error and returned responseCode is 4 (= ITEM_UNAVAILABLE) at onPurchasesUpdated().

enter image description here

I had already registered my product item at google play console and activated it about 3 hours ago. Isn't it enough time? Or... are there any steps that I missed? Please let me know what is wrong? Thanks. :)

1 Answer 1

6

Can you comply with the list?

  • Signing release apk with release keystore
  • Uploading the previously signed apk to at least alpha or beta google play
  • Starting purchase flow with the specific id that is already activated

If you want to make test(no pay) purchases you have to register your phone user and the user should be different from the one of the developer account.

3
  • 1
    I registered user account of test device as you said. And It worked. Thanks. :)
    – user6760779
    Nov 16, 2017 at 1:25
  • If after this you got error code 5, install the app on the device from play store
    – MiguelSlv
    Jan 13, 2019 at 13:11
  • 4
    After uploading to the test track, install the app from the test track, then make a test purchase. After the test purchase from the test track install, I was able to uninstall the test track version, and do purchase testing with normal dev builds directly from Android Studio. Aug 11, 2019 at 3:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy