Hey @Imad!
I totally understand where you’re coming from - however, RevenueCat doesn’t support revoking entitlements upon trial opt-out, because the stores indicate that the user should still have access during that period. By restricting their access when they still have an active trial, it would likely be a violation of the store’s rules, unfortunately. That being said, if you want to risk it, you can look at the unsubscribe_detected_at
property of a subscription to determine if a user has opted out of their trial or subscription.
cody wrote:
you can look at the unsubscribe_detected_at
property of a subscription to determine if a user has opted out of their trial or subscription.
@cody
Based on my observation (from calling https://api.revenuecat.com/v1/subscribers/USER_ID throughout the subscription lifecyce), unsubscribe_detected_at
is set after the entitlement has expired (the value is later than the entitlement’s expires_date
), NOT during the “winding down period”.
In my opinion this is not very useful. Because, well, it’s already expired.
I need to update my UI accordingly right after the user cancels subscription (but still active). How do I do that?