Question

Caching offerings - how to update offerings

  • 17 November 2021
  • 2 replies
  • 18 views

Badge

I’ve updated my subscriptions/products in Google Play and restarted my app, but RevenueCat Purchases.getOfferings() never updates with updated titles, descriptions, or pricing. How do I bust the cache to get subscription/product updates?

I have a Flutter app and am running the purchases_flutter: ^3.6.0 package.


2 replies

Badge

They’ve updated now that I closed and reopened the emulator.

Userlevel 3
Badge +7

Hey @Nathan Zabaldo! 👋

The on-device cache of offerings, as well as PurchaserInfo, lasts for approximately 5 minutes. An app restart will re-fetch the latest offerings from the dashboard, or if you are calling getOfferings often, it will be refresh after that expiration. You can read more about fetching and displaying offerings here: https://docs.revenuecat.com/docs/displaying-products

Reply