We use RevenueCat in Observer-Mode and only want to use it for logged-in users.
I read the post:
- Only configure RevenueCat with an userId
- Don’t call logout
There is one issue with this approach though - if the user logs out and then makes purchases RevenueCat might pick them up. Is there a way to destroy the RevenueCat instance in order to get in a state equal to configure not being called? Maybe calling `Purchases.sharedInstance.close()` when the user logs our?
There is not a way to do this currently in the SDK.
For the case of Observer mode, the best option seems to be to logout the users when they are logged out in your application, and handle the anonymous ID purchases another way. One option might be to check if the user is anonymous, and not allow them to make purchases if so.