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

How to check subscription auto renewed or not on iOS ? #513

Closed
infaz opened this issue Jun 10, 2019 · 7 comments
Closed

How to check subscription auto renewed or not on iOS ? #513

infaz opened this issue Jun 10, 2019 · 7 comments
Labels
🙏 help wanted Extra attention is needed 📱 iOS Related to iOS

Comments

@infaz
Copy link

infaz commented Jun 10, 2019

No description provided.

@hyochan hyochan added 📱 iOS Related to iOS 🙏 help wanted Extra attention is needed labels Jun 10, 2019
@hyochan
Copy link
Owner

hyochan commented Jun 10, 2019

We need community support for this since I've not yet tested this feature

@jvandenaardweg
Copy link
Contributor

jvandenaardweg commented Jun 10, 2019

Apple Docs on this subject

Below a few ways that i'm currently aware of:

  1. When validating a receipt with the Apple Servers, and the receipt validates, check if there's a new transaction after the last known expirationDate. If there is, its renewed.

  2. Subscribe to status update notifications on your own server to receive RENEWAL notification types. Setup the Subscription Status URL in App Store Connect.

Currently got 1 working, but that only works when "polling" randomly or when the user opens/uses the app. Now implementing 2 to have a complete history of subscription status changes without any polling or user action within the app.

@Stafox
Copy link

Stafox commented Jun 10, 2019

@hyochan what about adding possibility to decode transactionReceipt like it was made there: https://github.com/robotmedia/RMStore/blob/master/RMStore/Optional/RMAppReceipt.m

It allows also to resolve current issue. I know that I able to verify receipt using Apple Server, but I don't like the way to call Apple server twice (when make a purchase, and to verify).

What you think about that?

@hyochan
Copy link
Owner

hyochan commented Jun 11, 2019

@Stafox Thanks for providing this information. As you said, apple and google recommend us to use your own backend server to do any receipt validation but for some ease of use or some other MVP apps, I've provided offline receipt validation.
I might have to look on your link someday to support this in offline.

@hyochan hyochan added the 🥺 feature request Request a new feature label Jun 11, 2019
@hyochan
Copy link
Owner

hyochan commented Jun 18, 2019

Similar to #532 could #275 help this?

@hyochan hyochan added 👣 waiting for response Need feedback to continue and removed 🥺 feature request Request a new feature labels Jun 20, 2019
@hyochan
Copy link
Owner

hyochan commented Jun 21, 2019

I'll close this for now since this is already solved issue.

@hyochan hyochan closed this as completed Jun 21, 2019
@hyochan hyochan added solved and removed 👣 waiting for response Need feedback to continue labels Jun 21, 2019
@infaz
Copy link
Author

infaz commented Jun 21, 2019

@hyochan Thanks for pointed out the issue, and @Stafox Thanks for the information you provided. I think that the best way to handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏 help wanted Extra attention is needed 📱 iOS Related to iOS
Projects
None yet
Development

No branches or pull requests

4 participants