Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IAP Auto Renewable Subscription manual renewal before expiry date

I am working on a app on IAP Auto Renewable Subscription which auto renews subscription after its expiry date.

I gave a renew button to renew a subscription if it is already expired. (Auto Renewable Subscription might expire if user has canceled it from his iTunes account.) So here are few cases:

  1. what will happen if Auto Renewable Subscription is running and user is still trying to renew it by mistake.
  2. what will happen if Auto Renewable Subscription is stopped from user's iTunes account and user is trying to renew it before it expires.

Thank you.

like image 630
Vaibhav Saran Avatar asked Oct 21 '22 13:10

Vaibhav Saran


1 Answers

I can only answer your 1st question.

If a user has an Auto Renewable Subscription running, and tries to buy a 2nd one, StoreKit will abort the purchase, telling that the user already has one, via an alert view.

For your 2nd item (and the 1st), I recommend you to try in sandbox mode by creating test user on iTunesConnect "Manage User -> Test User"

Hope that helps...

like image 121
Goutallier Avatar answered Oct 23 '22 04:10

Goutallier