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

RefreshItems No Purchases Found #1063

Closed
safciplak opened this issue Jul 31, 2020 · 5 comments
Closed

RefreshItems No Purchases Found #1063

safciplak opened this issue Jul 31, 2020 · 5 comments
Labels
🤖 android Related to android 🙏 help wanted Extra attention is needed 🚶🏻 stale Stale Stale

Comments

@safciplak
Copy link

Version of react-native-iap

4.5.0

Version of react-native

0.62.2

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

Android

Expected behavior

Get Items

Actual behavior

throw excepton RefreshItems No Purchases Found

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

Just only run

@rizshivalli
Copy link

I have the same problem,
I have even submitted a beta release in android studio and it has been approved for over 4 days but still it is showing no purchases found (iOS working as expected).
How do we resolve this?

@rizshivalli
Copy link

  const initilizeIAPConnection = async () => {
    await initConnection()
      .then(async (connection) => {
        consumeAllItemsAndroid();
        await getItems();
        console.log('IAP result', connection);
      })
      .catch((error) => {
        console.warn(`IAP ERROR ${error.code}`, error.message);
      });
  };

  const getItems = async () => {
    try {
      const subscriptions = await getSubscriptions(itemSkus);
      console.log('Products', subscriptions);
      setSubscriptions(subscriptions);
    } catch (err) {
      console.warn(err.code, err.message);
    }
  };
  useEffect(() => {
    initilizeIAPConnection();
  }, []);

Try this.

I was able to resolve my issue with the above code

@hyochan hyochan added 🤖 android Related to android 🙏 help wanted Extra attention is needed labels Sep 26, 2020
@stale
Copy link

stale bot commented Dec 25, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the 🚶🏻 stale Stale label Dec 25, 2020
@stale
Copy link

stale bot commented Jun 9, 2021

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale
Copy link

stale bot commented Jul 21, 2021

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Jul 21, 2021
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 🚶🏻 stale Stale Stale
Projects
None yet
Development

No branches or pull requests

3 participants