Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: That item is unavailable. #618

Closed
Proxy08 opened this issue Jul 31, 2019 · 7 comments
Closed

Error: That item is unavailable. #618

Proxy08 opened this issue Jul 31, 2019 · 7 comments
Labels
🤖 android Related to android 🙏 help wanted Extra attention is needed

Comments

@Proxy08
Copy link

Proxy08 commented Jul 31, 2019

Version of react-native-iap

"react-native-iap": "3.0.2"

Version of react-native

  "react-native": "0.59.2"

Platforms you faced the error (IOS or Android or both?)

   Android

Expected behavior

popup Google play buy

Actual behavior

Error: That item is unavailable.

Tested environment (Emulator? Real Device?)

Real device

Steps to reproduce the behavior

     import RNIap, {
      Product,
      ProductPurchase,
      acknowledgePurchaseAndroid,
       purchaseUpdatedListener,
       purchaseErrorListener,
          PurchaseError,
         } from 'react-native-iap';
         const itemSkus = Platform.select({
             android: [
              'xxx',
               'xxx',
               'android.test.purchased',
                ]
          });

    const result = await RNIap.initConnection();
      RNIap.getProducts(itemSkus).then((products) => {
          this.setState({
              products
          });

      requestSubscription = async (sku) => {
        try {
          RNIap.requestSubscription(sku);
       } catch (err) {
        console.log(err.message);
          }
      }

When I try to buy my product I got that error, but when I use android.test.purchased it works

@hyochan hyochan added 🤖 android Related to android 🙏 help wanted Extra attention is needed labels Aug 1, 2019
@hyochan
Copy link
Member

hyochan commented Aug 1, 2019

Please go over my guide to resolve your issue.

Please feel free to reopen when you still have a problem.

@hyochan hyochan closed this as completed Aug 1, 2019
@Proxy08
Copy link
Author

Proxy08 commented Aug 2, 2019

I followed your guide, but this not working, I used a signed apk on a real device, but I'm still getting that error

@NarekChang
Copy link

Try it. Work for me:

"You need additionally add your testing account to another special list of accounts "Gmail accounts with testing access", you can find that on play account setting(not project!). On the page where you can see a list of your projects go to settings, and then on "Account details" page (scroll down, it's almost in the bottom of page) you will find the "Gmail accounts with testing access" list."

Set up application licensing
To set up application licensing, start by adding your list of tester's Gmail addresses in the Play Console.

  1. Go to your Play Console.
  2. Select Settings Settings > Account details.
  3. Under "License Testing," add your testers' Gmail addresses.
  4. At the top of the screen, select Save.

@DevrealmEOOD
Copy link

What worked for me (after all of the above points) was to set a version of the app to Alpha phase in the Google Play Console and then open the alpha testing link on the device that I test with. There I accepted the testing invitation and only after that I could actually buy the products in my app.

@aravi365
Copy link

I tried all those workarounds mentioned here but still i get that weird error : ' The item that you were attempting to purchase could not be found'.

@wemow
Copy link

wemow commented Jan 28, 2022

I have the exact same issue, my signed bundle is on the alpha channel (unreviewed), I tried both Release builds, Debug builds, Simulator, Real device, I can fetch the subscriptions correctly but impossible to make a purchase.

Should I wait for Google to review the alpha release first?

It's been two days waiting for review now.

@aleena-adnan1
Copy link

any solution to this @menloai ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Related to android 🙏 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants