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.

有帮助吗?

解决方案

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...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top