Questions tagged [react-native-iap]

65 questions
4
votes
2 answers

Unknown error getting products react-native-iap

I have days trying to implement in app purchase in React Native without success. I was trying using In-app purchases from Expo and right now with react-native-iap and I'm facing this error: error code: E_UNKNOWN. error message:…
3
votes
1 answer

React Native app fails to run after installing react-native-iap

I have an otherwise working React-Native app but need to include in-app purchases for it to be accepted on the app store. After a little Googling, it looks like react-native-iap is pretty much the only option. First Error After following the…
3
votes
0 answers

How i can purchase same product again In app purchase in react native (react-native-iap 7.5.0) for android?

I was using react native iap version 4.4.3 and currently i have upgrade my react native version 0.66 and react native iap version 7.53. consumeAllItemsAndroid method was worked for purchase same product again in the android but now this method has…
3
votes
2 answers

RNIap.getPurchaseHistory() always returns an empty array on iOS

The RNIap.getPurchaseHistory always return an empty array. Does not matter if I call on app start or after purchase was made. In componentDidMount I do the following: async componentDidMount() { await RNIap.initConnection(); …
Maksym Bezruchko
  • 1,223
  • 6
  • 23
3
votes
3 answers

React Native IAP getSubscriptions returns empty array for iOS

I am following this library to implement In App Purchase for react native project. Project info:- inside package.json "dependencies": { "react": "16.11.0", "react-native": "0.61.5", "react-native-iap": "^4.4.9" }, And I am trying to get…
Exigente05
  • 2,161
  • 3
  • 22
  • 42
2
votes
0 answers

react-native-iap and revenueCat difference

So I've integrated react-native-iap in my app for subscription feature, but I 've read some of the docs online which suggests to use RevenueCat library, I've tested in sandbox & storekit and working fine for now but one of the doc says it works fine…
Riddhi
  • 755
  • 11
  • 31
2
votes
0 answers

react-native-iap requestSubscription "An unknown error occurred"

I want to add In-App purchases (subscriptions) to my react-native app. I use react-native-iap. I added subscriptions in https://appstoreconnect.apple.com/ Features -> Subscriptions, I have 1 group with 2 subscriptions. I added In-App purchase…
2
votes
0 answers

On RNIap.requestSubscription(sku) returns undefind, on purchase successful in iOS React-Native

on click request for subscription and Confirm on device then Dialog will show saying: "You're all set. Your purchase was successful. [Environment: Xcode]" purchaseUpdatedListener and requestSubcription callback doesn't return any value or…
Alok Singh
  • 151
  • 10
2
votes
1 answer

No visible @interface for 'SKPaymentQueue' declares the selector 'presentCodeRedemptionSheet'

Curious if anyone else getting similar this trying to build via XCode or RN CLI? Since upgrading to react-native-iap 5.2.0. Error No visible @interface for 'SKPaymentQueue' declares the selector…
Leo
  • 10,407
  • 3
  • 45
  • 62
2
votes
2 answers

React Native | react-native-iap

It is the first time that I use react-native-iap in my project. I installed the library without any problems. I have a few questions. My code block is below for a single product purchase. Is this usage right now? import * as RNIap from…
irfan
  • 102
  • 9
1
vote
0 answers

How to make in app subscription in react native in iap

How do i make subscription in react native in app purchase library. It seems the library has been updated and my code only returns available subscriptions with a subscriptionOfferDetails property. I don't see the base subscription details and…
1
vote
0 answers

Can't get appAccountToken sent from react-native-iap in App Store Notification v2 + Firebase function

I'm working on auto-renewable subscription using react-native-iap (mobile client) and handling subscription update via firebase function from App Store Server Notification v2 In client side, I sent using the requestSubscription…
1
vote
0 answers

How to implement Restore Purchase in React Native?

How to implement Restore Purchase functionality in react native using react-native-iap? I read complete doc but not find any method to Restore Purchase.
1
vote
0 answers

How to implement consumable In app purchase in react native for Android?

I am trying to implement a consumable in app purchase in my react native app, are there any libraries? I tried using react-native-iap but it cannot handle consumable type products it only handles subscriptions and one time purchase.
1
vote
0 answers

react-native-iap I have problem with successfully make a subscription payment

Have anyone successfully implemented in app subscriptions with react-native-iap in an app. I have tried to implement it but still very unstable. Can't rely that the subscription payments work every time. Sometimes the pay dialog won't show,…
1
2 3 4 5