Giter Club home page Giter Club logo

Comments (7)

Symyon avatar Symyon commented on September 27, 2024

OK, I had to "prepare" the RNIap first. Sorry.

from react-native-iap.

hyochan avatar hyochan commented on September 27, 2024

@Symyon This is strange because nothing will happen in ios for prepare method. This only affects android billing service to start. Maybe there could be some delay in ios payment to update your products.

from react-native-iap.

Symyon avatar Symyon commented on September 27, 2024

@dooboolab Sorry for the delay. And for the misunderstanding.
My question/issue is for iOS, but my comment with "prepare" is for Android.

So on iOS I am unable to consume my purchased items and for that reason I am unable to re-buy.
getAvailablePurchases() is an empty array.

For Android I also had the problem getting available purchases, but that was solved with "prepare".

I am still debugging the iOS issue, but any help will be appreciated.

Also on iOS is taking a huge amount of time to wait for the systems dialog (Are you sure to buy, You already bought/restoring etc). It is like 10-20 seconds. Than at some point they are all coming one after another for the action I did (e.g. taping more than one item to buy while app is waiting)

from react-native-iap.

noahhayes avatar noahhayes commented on September 27, 2024

I have the same issue. I was wondering if it had something to do with not calling finishTransaction or because I'm using a sandbox user.

One interesting thing is that if I try to re-purchase, I am alerted that I've already subscribed to the item in the past.

from react-native-iap.

noahhayes avatar noahhayes commented on September 27, 2024

hey @Symyon not sure if you figured it out... but for anyone else that needs help, the solution is to make sure you're not signed into a sandbox testing account. Once I signed into my real Apple account, getAvailablePurchases prompted me to authenticate correctly.

from react-native-iap.

noahhayes avatar noahhayes commented on September 27, 2024

Okay another update. So the problem came back and then I was able to make it work after I signed out of my apple account and signed back in as the sandbox. Something about signing in and out seems to reset it.

from react-native-iap.

ollyde avatar ollyde commented on September 27, 2024

If you use the Prepare method it will crash on release for Android fyi. I'm stuck now cache. Can't use prepare on release APK. Can't validate subscriptions.

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.