Reputation: 510
I read many materials about ios renewable subscriptions and have this workflow:
That workflow because:
But I have some problems/questions:
Please give me links or answers for my questions.
UPD:
I have one question Now. How to connect with apple servers for sync renewals like android flow.
Current scheme:
+--------------+ +--------------+ +---------------+
| | | | | |
| Mobile | | Backend | | Apple r
| | | | | |
+------+-------+ +-------+------+ +--------+------+
| Sync | |
+------------------------------------------------------>
<------------------------------------------------------+
| Renew | |
+---------------------------> Verify |
| +-------------------------->
| Renewed <--------------------------+
<---------------------------+ |
+ + +
But I want flow without mobile inapp:
+--------------+ +--------------+ +---------------+
| | | | | |
| Mobile | | Backend | | Apple r
| | | | | |
+------+-------+ +-------+------+ +--------+------+
| Data for sync | |
+---------------------------> Check renewals |
| +-------------------------->
| <--------------------------+
| +--+ |
| | | Renew |
| <--+ |
| | Check renewals |
| +-------------------------->
| <--------------------------+
| | |
++ + +
Upvotes: 1
Views: 505
Reputation: 24247
Welcome to Apple Sir, there are a few things you should note before attempting to create an "Android flow".
So Apple is always in control of this process. You will not be able to identify a user using their receipt or even get any credit card information from them. You simply rely on the fact that when Apple provide you with a receipt that it is a valid receipt and you will be paid for it
Regarding renewals, heres an excerpt from the documentation regarding how they should be handled:
After a subscription is successfully renewed, Store Kit adds a transaction for the renewal to the transaction queue. Your app checks the transaction queue on launch and handles the renewal the same way as any other transaction. Note that if your app is already running when the subscription renews, the transaction observer is not called; your app finds out about the renewal the next time it’s launched.
So every time your App launches you get the opportunity to add any existing transactions to your queue. This is the time where you can inform the server that a receipt has been renewed.
Upvotes: 1