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

∥☆過路亽.° 提交于 2019-12-03 00:48:08

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.

Enrico Susatyo

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!