-
-
Notifications
You must be signed in to change notification settings - Fork 620
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
[Question] How do you know which subscription is active and if it has not been cancelled by user #202
Comments
About the autorenewable in test environnement , Available Purchases are (I've removed older events and ordered them for convenient reading as it's randomly get in Array)
I got 6 events but 5 renewals not as expected (https://help.apple.com/app-store-connect/#/dev7e89e149d) ? and in history (I removed past events)
Do you understand something ? |
In iOS you can refer this page for subscription. |
Hi @JJMoon , the question is not "how can a user unsubscribe" (which is done in iPhone settings as you refer) but how can I know within react-native-iap "which subscription is active" and if "the subscription has been cancelled by user". |
@lc3t35 You can use |
@dooboolab getSubscription returns an Array of products
but nothing indicates which one the user subscribed ? |
I hope this might help. |
I don't know if this might help you, but we can use getPurchaseHistory and get the final receipt. |
@AnthonyHaykal the problem is now how to decode this receipt -> look at #203 |
@lc3t35 I'll close this one because validating receipt issue is left. |
Version of react-native-iap
1.2.1
Platforms you faced the error (IOS or Android or both?)
iOS (but same question for Android)
In testing environment, it is not very easy to understand how getAvailablePurchases and getPurchaseHistory work. I only use renewable subscriptions. Here is a dump of what it returns :
What a mess !
Last transaction is for com.shares.sharesapp.plus (transactionId : 1000000410748496) at 25 06 2018 : 14:21:49 .... correct in history but we don't have the same transactionId (1000000410748478) at same product/date 25 06 2018 : 14:21:49 in Available Purchases ...
How do you know which subscription is active (search with last transactionDate) ?
Then how do you if the subscription has not been cancelled by user in system prefs ?
How can you cancel subscription in test environnement, I have an "Account creation in ITunes is not allowed - this Apple Id cannot be use un iTunes Store for now. Try again later" when I try to do it with a Sandbox test account.
The text was updated successfully, but these errors were encountered: