0

We have an internal testing app for the platform we use to develop our apps and we are working on adding in-app-billing to our platform to support subscriptions that some of our clients may offer.

Integration of the billing library thus far has been pretty easy, and we have our platform test app in the Google Play Console with test subscriptions setup, license testers properly setup, and emails added to an alpha testing list. The app is signed and we use the same signing keystore on both the store and locally for our sandbox app.

In my code, I am able to see the list of products (subscriptions) we get back from the IAB library and I can successfully read the SkuDetails object, but when attempting to purchase them, I am getting an error: "The Item You Requested is Not Available for Purchase". On my test device, I have the same emails setup as we have in both our license testing and alpha testing channel. The version code and name of our sandbox app matches what we have in the store.

Error Message We Receive

I was successfully able to register for internal Alpha testing, however I cannot download the app on the Google Play Store.

The questions I have are:

  1. Why am I unable to download the alpha of our app after signing up for the beta on my phone using the email address we have designated to have access to the beta?

  2. Why are we getting a "The Item You Requested is Not Available for Purchase" error even though we have our subscriptions and licensing setup properly (from our perspective) in both the store and our sandbox app?

1 Answer 1

0

This has happened to before, so I am going to share with you some tips to help you with the same.

Tip 1: There are two testing lists and you need to make sure your email is added to both of them. One is app specific and one is your Google Play account specific. You can find the first outside in the play console panel before you select your app. Second is app specific which I assume you have already added.

enter image description here

Tip 2: Make sure you accept the testing invite for your specific email. You can find the testing link in your internal testing track or alpha testing track. Make sure you open your email account and then open the invite link and accept the test.

Tip 3: On your testing device, make sure your email account is the only one logged in. If sometimes you have multiple accounts, that can causes issue with the in app testing.

Tip 4: Sometimes after adding a tester, it takes time for Google's server to mark that user as a test user, so after adding, give it some time like a couple of hours and then make the test.

Tip 5: Make sure the testing account is different than one that you have set up play console with.

Tip 6: Make sure that the versionCode and versionName matches as the build on Play Console and the build is available on required tracks and not in testing mode.

Tip 7: Make sure the product is activated and the SKU IDs are proper.

9
  • For Tip 1: We have done that. My main email is on both lists. For Tip 2: I have down that as well. Tip 3: I will try this. My main test phone is my daily driver device, but both emails I use on that phone are in the test list. Tip 4: We've waited well over a day now. Mar 17 at 17:27
  • If you could post some code, also another unknown factor is how have you set up the item for purchase, because as you said otherwise the process is pretty straightforward. @JoshuaDelaney
    – che10
    Mar 17 at 17:34
  • Also just a couple of other shoutouts, your testing account should be different from the one you have set up your Play account with. Also the versionCode and versionName should match as the build uploaded on internal testing track. Make sure the build is available and not in draft.
    – che10
    Mar 17 at 17:35
  • We first get the SkuDetails object. I have verified that bit all works. We have a valid SkuDetails object. ' val flowParams = BillingFlowParams.newBuilder() .setSkuDetails(skuDetails) .build() billingClient?.launchBillingFlow(activity, flowParams) ' Doing that, I get the error. Mar 17 at 17:37
  • @JoshuaDelaney I have updated the answer with some other couple of tips. Please check them
    – che10
    Mar 17 at 17:38

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.