Hi.
I’m using iOS SDK.
- How often does CustomerInfo update from network (vs cache)?
- Can I influence the update frequency?
- Can I force a network update?
Many thanks,
Hi.
I’m using iOS SDK.
Many thanks,
Hi -- I have a case where I would like to be able to clear this cache behind the scenes. I have a Web-based checkout that uses Stripe’s integration with RevenueCat, and if a call to `Purchases.customerInfo` has happened to have occurred less than 5 minutes prior to that checkout (which is pretty likely, given the fact that they have probably been using the app shortly before deciding to make the purchase), then the purchased features will not be available until that cache is cleared.
I’d love to provide a button in the app that my ‘Purchase Complete’ screen could drive the user to, which would clear the customerInfo cache, and give them immediate access to the feature, rather than asking them to kill and re-open the app. Based on the answer above, I don’t _think_ that is currently possible, but would love to learn otherwise!
Hey There!
Hopefully this helps answer some of your questions:
purchases:receivedUpdated:
. This will fire whenever we receive a change in CustomerInfo on the current device and you should expect it to be called at launch and throughout the life of the app.getCustomerInfo()
, make a purchase, or restore purchases, so it's a good idea to call getCustomerInfo()
any time a user accesses premium content(this will help ensure that it is up-to date frequently).getCustomerInfo()
: This can be called frequently throughout your app. Since the SDK updates and caches the latest CustomerInfo when the app becomes active, the completion block won't need to make a network request in most cases.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.