Comments (4)
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.
@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.
OK. I will change and commit..
from react-native-iap.
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)
- Why is quantity only available for IOS? HOT 1
- Expo android prod build - getSubscriptions() doesn't return a subscription offer HOT 1
- Repeatedly prompted for the purchase in react-native-iap IOS. No callback on the listener HOT 3
- [Android] purchaseUpdatedListener auto-renew subscription not listened HOT 2
- AppleID Sign in prompt. HOT 1
- Troubleshooting In-App Purchases in TestFlight using react-native-iap(v-12.10.8)
- getPurchaseHistory & getAvailablePurchases undefined IOS HOT 4
- Changes to Merchant Initiated Transactions on Apple Pay Tokens
- Request Subscription Not appearing - How to deal with pending transactions?
- getProducts returns undefined. HOT 4
- applicationUsername is not passed to iOS native method HOT 2
- [Android] You must register a PurchasingListener before invoking this operation HOT 1
- [question] StoreKit: alternative to recepit validation?
- Android - Subscription not reflected in ra HOT 10
- [IOS] purchaseUpdatedListener callback not called when purchase success HOT 6
- Support for MacOS and Windows HOT 1
- Support for Alternative Billing APIs
- getAvailablePurchases() always giving error like this : [Error: An unknown error occurred] in ios, i don't know what is the issue? HOT 2
- Android finishTransaction on Downgrade Flow doesn't complete after 12.3.1 HOT 4
- all users in Apple Store iap always using sandbox enviroment without any connect sandbox users setting
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.