Skip to main content

I am using RevenueCat in my React Native app. I have a subscription and I use getCustomerInfo to keep track of subscription status. When the subscription is purchased, getCustomerInfo’s activeSubscription property lets me know that it’s been purchased and I can let the customer know the same.

 

But when the subscription is cancelled, activeSubscription still shows active until the subscription finally expires (in real life this would be month but in my case, it’s 5 mins). As a result, I’m not able to let the user know they’re subscription has been cancelled when they cancel (I have to wait till it expires). 

 

I have also checked out the willRenew and unsubscribeAt properties of getCustomerInfo.entitlements but they show the same behaviour. I also tried out addCustomerInfoUpdateListener instead of getCustomerInfo and it also shows the same behaviour. 

Hi! This issue is most likely the result in a slight delay in detecting the cancellation from the App Store, which is more obvious with the expedited nature of Sandbox Subscriptions. I took a look at your projects and did not see that Platform Server Notifications are configured. Adding them to your apps will reduce this delay in detecting the cancellations as the stores will notify RevenueCat of changes to a transaction. You are correct to use unsubscribeAt or willRenew in order to check if a subscription has been cancelled.