getProducts & getSubscriptions returning both products and subscriptions
See original GitHub issueVersion of react-native-iap
5.0.1
Version of react-native
0.61.5
Platforms you faced the error (IOS or Android or both?)
iOS
Behavior
Unlike the naming and the documentation states, getProducts
& getSubscriptions
are returning both products and subscriptions.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
React Native IAP getSubscriptions returns empty array for iOS
I am following this library to implement In App Purchase for react native project. Project info:- inside package.json "dependencies": { "react": ...
Read more >react-native-iap - npm
Subscribable products can be purchased just like consumable products. Users can cancel subscriptions by using the iOS System Settings.
Read more >modules - React Native IAP - dooboolab
Deep link to subscriptions screen on Android. No-op on iOS. Parameters. Name, Type, Description. sku, Object, The product's ...
Read more >Recharge API Reference - List subscriptions
Products, GET /products ... GET /subscriptions/:id, subscription/activated ... This header contains both a next_cursor and previous_cursor link, ...
Read more >React Native In-App Purchases (Android) - YouTube
... to fully working purchases with backend receipt validation and also how to set up test users to purchase the subscription.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in
6.0.1
version. Issue could be closedI can confirm this on iOS with version
4.6.3
.My observation: If you fetch subscriptions with
RNIap.getSubscriptions(['id1', 'id2'])
You will get the same subscriptions when callingRNIap.getProducts([])
with an empty array.So filtering product IDs for fetching does not solve the issue. You will need to filter the results after fetching.