Comments (12)
@hungvu193 try to connect the library manually, it works for me. 👯♂️
from react-native-iap.
@Suraj-Tiwari Check the version and the readme. There is breaking changes in method name.
from react-native-iap.
Well that was an example
RNIap.buySubscription('my.sub.id').then((item_receipt) => {
console.log(item_receipt);
}).catch(err => alert('errror :' + err))
This code produce same error too.
Error message: Type Error Cannot read property of 'buyProduct' of undefined.
from react-native-iap.
@Suraj-Tiwari
Could you describe the issue properly? Because I am confused. You wrote buySubscription
on the code but the error message is buyProduct
of undefined. Please provide the problem thorougly, so we can understand the problem. Providing your procedure would be helpful too.
from react-native-iap.
Alright, Main issue is Both functions are firing undefined
error for different variables and other functions too like getProducts() etc..
this message is on simulator
And same code gave this error on Physical device
Type Error: undefined is not an object (evaluating 'i.buyProduct')
from react-native-iap.
Because I am confused. You wrote buySubscription on the code but the error message is buyProduct of undefined.
That's why i filed an issue because i was confused too #reopen this issue until it's resolved.
I'll try to Resolve from my end too.
from react-native-iap.
Did you link the library properly? If you checked the version perperly and used the proper methods name, I think that would be the reason you get undefined
.
If you did, provide us our module version
and your react-native version
for more info.
### Version of react-native-iap
### Expected behavior
### Actual behavior
### Steps to reprodue the behabior
Also FYI, you don't have to write Platform specific code for our project because we do this our own.
from react-native-iap.
Ok so this was happening because i forgot to add libRNIap.a
but after adding i Got this #98 again
from react-native-iap.
### "react-native-iap": "^0.3.1",
### Successful purchase
### Errors
### Install library > link manually IOS> and again compile error```
from react-native-iap.
@dooboolab @Suraj-Tiwari meet the same problem too. so far any solution?
from react-native-iap.
i face this issue with react-native 0.5.4 and react-native-iap : ^1.3.5, any solutions?
from react-native-iap.
There are many fluctuations with latest react-native version. IF facing any issue try to go previous build,
from react-native-iap.
Related Issues (20)
- getAvailablePurchases on iOS does not return the active subscriptions HOT 3
- Android 14 bug: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified HOT 1
- introductoryPrice missing and intriductoryPriceAsAmountIOS incorrect
- getSubscriptions returns an empty array on Android HOT 6
- [IOS] Implementing IAP flow fails on TestFlight and auto-crashes the app on start if app hasn't been approved yet
- getProducts always returns an empty array on android
- How to get base plan id from purchaseUpdatedListener?
- Infinite loop for requestPurchase HOT 2
- [Android] offerToken is required for constructing ProductDetailsParams
- in android response of purchase only got true "react-native-iap": "^12.13.1",
- Please report: Excessive number of pending callbacks:
- Some proration mode is not working when upgrading and downgrading HOT 1
- in expo getSubscriptions return an empty array HOT 1
- How to know status of available subscription if in case our auto renewable is not acrive
- How can we track user subscription with purchaseUpdatedListener
- Disable confirmation alert about auto renewal subscription after deleting the app
- I can't get any examples from the IAPExample folder to work on iOS. Am I the only one in this situation?
- IOS: Downgrade subscription HOT 10
- IOS Consumable In-App Purchase Item can only be purchased by requestPurchase once per day in sandox environment? HOT 2
- RNIap.requestSubscription({}) returns cancelled subscription in result for iOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-iap.