I’m working on an app with an auto-renewing subscription.
When using Sandbox testing, I can subscribe, and it updates just fine. However, if I cancel the subscription, when I go to get the updated `purchaserInfo`, the `willRenew` property is `true`. Even if I reset the cache, it still won’t be updated.
There is a limitation of StoreKit testing receipts- Apple doesn't actually include the same renewal data that we need in these Xcode receipts that they do for normal sandbox/production purchases, so it's not possible for us to calculate the 'willRenew' field correctly with these types of receipts. Sorry about that!
You should be able to use `isActive` field, it may take a few minutes for our cache to refresh in the app. The `isActive` field is calculated when the PurchaserInfo object is created, so it will take a cache refresh (~5 minutes) to get this value updated. This is more noticeable in sandbox when testing shorter durations, etc, but you are safe to call the `purchaserInfo` method as often as you need.
There is a limitation of StoreKit testing receipts- Apple doesn't actually include the same renewal data that we need in these Xcode receipts that they do for normal sandbox/production purchases, so it's not possible for us to calculate the 'willRenew' field correctly with these types of receipts. Sorry about that!
You should be able to use `isActive` field, it may take a few minutes for our cache to refresh in the app. The `isActive` field is calculated when the PurchaserInfo object is created, so it will take a cache refresh (~5 minutes) to get this value updated. This is more noticeable in sandbox when testing shorter durations, etc, but you are safe to call the `purchaserInfo` method as often as you need.
I have the same issue on iOS on production… looks like `entitlement.willRenew` is not working at all.. I bought a subscription on production, then cancel it after 5 minutes, and now, after 6 hours, I can’t see in RevenueCat panel the subscription as cancelled. Also on the app it shows it to have willRenew with value true...
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.