开发者

iOS auto-renew expired at the end of current subscription period

开发者 https://www.devze.com 2023-03-16 01:42 出处:网络
I ordered a auto-renew product, After 5 minutes ,it become expired! I think in Sandbox 5 minutes is equal to 1 month,

I ordered a auto-renew product, After 5 minutes ,it become expired!

I think in Sandbox 5 minutes is equal to 1 month,

At the end of current subscription peroid(after 5 minutes), it should't be au开发者_开发知识库to-renewed? but it become expired.


In the sandbox environment, auto renewable subscriptions are much shorter than the actual time. From this answer:

   Actual duration      Sandbox duration
   1 week               3 minutes 
   1 month              5 minutes
   2 months             10 minutes 
   3 months             15 minutes 
   6 months             30 minutes 
   1 year               1 hour

And although this fact is not documented, according to some developers in Apple's developer forum (and my own experience), subscription will renew 5 times before you get 21006 error (subscription expired error). So if you have a 1 month subscription, it will be renewed every 5 minutes for 25 minutes. Don't rely on this fact though, as it's not officially documented and might change anytime.


This is my experience as well. Auto-renewing in the sandbox environment is inconsistent. On some occasions I've seen a sandbox subscription auto-renew about 5 times before ending. But on other occasions it doesn't auto-renew at all. I assume these problems don't exist in the production environment.


I have experienced this as well, but if I kill the app from the multitasking tray (or stop the process in Xcode) and relaunch, I get an updated transaction with state "SKPaymentTransactionStatePurchased" that essentially renews the subscription. Check that out. It will at least give you something. Very frustrating that this is so inconsistent and not in alignment with the documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号