Skip to main content
Solved

willRenew and unsubscribeDetectedAt are not updated after subscription cancelled

  • 17 February 2022
  • 1 reply
  • 252 views

Forum|alt.badge.img+5

I have an app made in Flutter that is running on Android and using subscriptions. The most basic things are working. But this is not:

User have an active subscription and then cancels the subscription.

I wait for more than ten minutes. I restart the app.

Still PurchaserInfo says willRenew is true and unsubscribeDetectedAt is null.

What can be done to get the updated information?
 

Best answer by Andy

Hey @Björn

 

getPurchaserInfo will return a cached value, if one exists. If the cache is outdated, it will trigger a cache refresh, and the refreshed value will come in through the purchaserInfoListener.

This means that during that second run, in order to get the updated purchaserInfo, you should be using the purchaserInfoListener, which will fire as soon as new information is fetched from the backend. 

 

Hope this helps!

 

Andy

View original
Did this post help you find an answer to your question?

1 reply

Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 237 replies
  • Answer
  • February 25, 2022

Hey @Björn

 

getPurchaserInfo will return a cached value, if one exists. If the cache is outdated, it will trigger a cache refresh, and the refreshed value will come in through the purchaserInfoListener.

This means that during that second run, in order to get the updated purchaserInfo, you should be using the purchaserInfoListener, which will fire as soon as new information is fetched from the backend. 

 

Hope this helps!

 

Andy


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings