Giter Club home page Giter Club logo

Comments (12)

andrideng avatar andrideng commented on June 26, 2024 2

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

from react-native-iap.

hyochan avatar hyochan commented on June 26, 2024

@Suraj-Tiwari Check the version and the readme. There is breaking changes in method name.

from react-native-iap.

Suraj-Tiwari avatar Suraj-Tiwari commented on June 26, 2024

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.

hyochan avatar hyochan commented on June 26, 2024

@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.

Suraj-Tiwari avatar Suraj-Tiwari commented on June 26, 2024

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')

Error

Code

from react-native-iap.

Suraj-Tiwari avatar Suraj-Tiwari commented on June 26, 2024

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.

hyochan avatar hyochan commented on June 26, 2024

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.

Suraj-Tiwari avatar Suraj-Tiwari commented on June 26, 2024

Ok so this was happening because i forgot to add libRNIap.a
but after adding i Got this #98 again
ISSUE

from react-native-iap.

Suraj-Tiwari avatar Suraj-Tiwari commented on June 26, 2024
### "react-native-iap": "^0.3.1",
### Successful purchase
### Errors 
### Install library > link manually IOS> and again compile error```

from react-native-iap.

andrideng avatar andrideng commented on June 26, 2024

@dooboolab @Suraj-Tiwari meet the same problem too. so far any solution?

from react-native-iap.

hungvu193 avatar hungvu193 commented on June 26, 2024

i face this issue with react-native 0.5.4 and react-native-iap : ^1.3.5, any solutions?

from react-native-iap.

Suraj-Tiwari avatar Suraj-Tiwari commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.