Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the list of subscribed plans for the user. #18

Closed
hyochan opened this issue Jan 31, 2018 · 4 comments
Closed

Get the list of subscribed plans for the user. #18

hyochan opened this issue Jan 31, 2018 · 4 comments

Comments

@hyochan
Copy link
Member

hyochan commented Jan 31, 2018

getPurchaseItemsAndroid(inapp : string)

We are missing above method currently for IOS.
Also looking for the contributor!

@JJMoon
Copy link
Contributor

JJMoon commented Feb 4, 2018

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

@hyochan
Copy link
Member Author

hyochan commented Feb 4, 2018

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

@JJMoon
Copy link
Contributor

JJMoon commented Feb 5, 2018

OK. I will change and commit..

@hyochan hyochan closed this as completed Mar 2, 2018
@alanlanglois
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants