question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IAP subscription purchase error.

See original GitHub issue

Version of react-native-iap

Latest

Expected behavior

data

Actual behavior

Error

Steps to reprodue the behabior

Well in my case, Install -> manual merge -> then this code

try {
//also tried RNIap.getSubscriptions().then((data) => ....);
    RNIap.getProducts().then((item_receipt) => {
                    console.log(item_receipt);
    }).catch(err => alert('errror :' + err))
} catch (err) {
alert('errror :' + err);
}

Error message: Type Error Cannot read property of getitems of undefined.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
andridengcommented, Aug 14, 2018

@hungvu193 try to connect the library manually, it works for me. 👯‍♂️

0reactions
Suraj-Tiwaricommented, Aug 14, 2018

There are many fluctuations with latest react-native version. IF facing any issue try to go previous build,

Read more comments on GitHub >

github_iconTop Results From Across the Web

In-App Purchases Error: This item … | Apple Developer Forums
I have Auto-Renewable Subscriptions in my app. Monthly Subscription and Annual Subscription. In the SandBox Environment, these two works fine.
Read more >
Fix for "Your Purchase Could Not Be Completed" error in App ...
1) The item is not available in your country · 2) Your Apple ID is disabled or locked · 3) Your payment method...
Read more >
I keep getting a "Purchase Failed" message. - Wildlife Studios
I keep getting a "Purchase Failed" message. · 1. On your iOS device: Go to Settings - [your name] - iTunes & App...
Read more >
SKErrorDomain error 0 and how to fix it - Qonversion
This error mostly comes directly from Apple, and is an unknown error to do with their API. If you are using Qonversion to...
Read more >
Integrate the Google Play Billing Library into your app
Life of a purchase · Active: User is in good standing and has access to the subscription. · Cancelled: User has cancelled but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found