Skip to main content
Question

A standard routine for handling getCustomerInfo?

  • September 11, 2022
  • 2 replies
  • 93 views

Forum|alt.badge.img+3

Currently,  one of my apps calls `getCustomerInfo` on app launch and after any purchase has been successfully processed. Is this sufficient or should it be called more frequently?

 

I do not understand how it works, but if a user is not connected to the internet, does it assume that the entitlement (if one existed) is still valid? If that is the case, should we be worried that some users may simply disconnect from the internet whenever they launch our app? 

 

Furthermore, in the event that an error is thrown, how should we handle it in terms of whether or not an entitlement should be granted? Should we just inform the user to try again later?

 

Thanks in advance!

This post has been closed for comments

2 replies

Forum|alt.badge.img
  • New Member
  • 1 reply
  • September 12, 2022

Apple ios xcode appstore


imougy
Forum|alt.badge.img+9
  • Active Helper
  • 94 replies
  • September 17, 2022

There is caching for the customer Info in case no internet connection.  So, I wouldn’t worry too much about handling corner cases, that is the beauty of RevenueCat SDK.

In case of errors, in my apps, I don’t grant permission to entitlements, I actually did try that and some lucky users might get all my apps for free, so I stopped being generous.  What I do instead, is lock the feature and hopefully, users will contact me if the issue persists.  Displaying error to users are useless, frustrating, and most likely will be an endless loop.


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