Giter Club home page Giter Club logo

Comments (4)

JJMoon avatar JJMoon commented on June 26, 2024

The case in iOS seems a little different. For the 2 kinds of products ( which are non-consumable, consumable)

Consumable : There is no way to restore consumable products in iOS IAP.
Non-consumable : We have restoreProducts function in this module.
Please refer to the following answer in SO.

https://stackoverflow.com/questions/6449312/iphone-in-app-purchase-consumable-correct-approach?rq=1

In the answer, Cœur implemented some kind of 'keeping' non-consumable products in the device.
But, it will disappear when the user delete and re-install the app. It's like local database.

And it seems that the both subscription systems are the same case (not retrievable in auto-subscription)

The purchasing systems in both platforms look similar at the first time, but it seems further and further , the more I research the systems. Interesting.

So, I suggest as follows.

let getPurchaseItemsAndroid as it is. The name contains Android. It looks like having Android only function, and actually it does. So, it's OK.

rename restoreProducts to "restoreIosNonConsumableProducts". Long method name is the way of Objective-C, and in this case the name makes sense. It looks like iOS only method.

enhance readme file for more kind to novice users.

Sorry for late reply..

from react-native-iap.

hyochan avatar hyochan commented on June 26, 2024

@ankurToko should check this out. So @JJMoon , would you implement restoreIosNonConsumableProducts method? Or just leave it like this? What is a plan?

from react-native-iap.

JJMoon avatar JJMoon commented on June 26, 2024

OK. I will change and commit..

from react-native-iap.

alanlanglois avatar alanlanglois commented on June 26, 2024

What about this method?
I get a RNIap.getPurchaseItemsAndroid is not a function error.
What are the params needed by this function?

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.