Wrong auto renewable subscription expiration date?
Closed this issue · 3 comments
First of all thank you for great work.
I tried to nslog purchase date and expiration date for my auto renewable subscription right from [RMAppReceipt enumerateASN1Attributes...] and i saw that expiration date EARLIER than purchase date. Do you have any suggestions what i do wrong? How can i determine does a subscription have active state by given date?
Hi @t0rn. I assume you're seeing this in sandbox. Did you refresh the receipt beforehand?
Also, can you reproduce it consistently with a new purchase?
I tried to update the receipt and check the expiry date of subscriptions without restoring or purchase a new subscription. In this case, the expiry date was earlier than the purchase of a subscription.
Then I tried to check the dates when you purchase a subscription - in this case the expiration date okay.
Actually all I need to do this to make available issues of the magazine if the publication date later than the date of purchase and before the expiration date of the subscription.
So here is my question:
Do i have to save (preferred locally) purchase and expiration dates from iAP receipt, when purchase was made or restored? Or there is easiest way?
P.S. My app have to support iOS 6+.
I'd recommend the official Store Kit documentation and/or asking this question on Stack Overflow. This doesn't seem to be a RMStore issue so I'm closing it.