Skip to main content
Answer

Manually calling getPurchaserInfo()

  • December 8, 2021
  • 1 reply
  • 373 views

Forum|alt.badge.img+1

Hi, documentation at https://docs.revenuecat.com/docs/purchaserinfo says that we should call getPurchaserInfo() any time a user accesses premium content.

However, I can see that SDK updates its cache when app comes to screen.

Is it still necessarily to call getPurchaserInfo() anyway?

Best answer by ryan

Hey @NLL Apps!  

Is it still necessarily to call getPurchaserInfo() anyway?

Nope! The SDK will automatically update the cache when the app is launched as you’ve pointed out. The only downside is that a customer could get one “free” app launch after their subscription expired and they re-open the app while the cache is updated in the background - usually this isn’t a big deal.

This post has been closed for comments

1 reply

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Answer
  • December 8, 2021

Hey @NLL Apps!  

Is it still necessarily to call getPurchaserInfo() anyway?

Nope! The SDK will automatically update the cache when the app is launched as you’ve pointed out. The only downside is that a customer could get one “free” app launch after their subscription expired and they re-open the app while the cache is updated in the background - usually this isn’t a big deal.