SwiftyStoreKit
SwiftyStoreKit copied to clipboard
Auto-renewable subscription billing retry state question
Platform
- [X] iOS
- [ ] macOS
- [ ] tvOS
In app purchase type
- [ ] Consumable
- [ ] Non-consumable
- [X] Auto-Renewable Subscription
- [ ] Non-Renewing Subscription
Environment
- [X] Sandbox
- [X] Production
Version
0.14.2
Question (not an issue)
I was reading Apples documentation about handling subscription billing and noticed this:
Your app must also react to new, renewed, and lapsed subscriptions, and properly handle expired auto-renewable subscriptions that may be in a billing retry state.
I wanted to ask if SwiftyStoreKit is able to handle this (or already does). I am currently using the verifitySubscription()
with the 3 types (purchased, expired, not purchased). If a user goes into a billing retry state, do they get put into the expired category?
I'll have to double-check this, but I think they do get placed in the expired category. You'd then need to check the expiry date in the receipt. At that point, your app could provide a grace period.
Hi @Sam-Spencer ,
If it is in an expired state, then can you let me know what should we compare then? Like as per apple doc, We can check the grace_period_expires_date_ms field with the current date, right?
If you have done it, please share your code snippet
It would be very helpful to me
Thanks