So currently, I need to implement restore purchases if the user was previously subscribed.
I understand Revenue Cat’s API in which it checks entitlements -- (Does this work for offerings btw?)
I was going to show a restore button to the user if they qualify (as suggested by apple) which would trigger the function on click. However, my app has NO login credentials. Given this, I only have info such as device id, how can I make a conditional that shows whether the restore button is shown to the user or not?
Restoring purchases does not impact offerings. What happens when a user restores purchases is that the Purchases SDK syncs the user’s device receipt with the RevenueCat backend. The device receipt contains unique information about the user’s transactions so that RevenueCat is able to pair the transactions to an app user ID and then subsequently unlock the appropriate entitlements.
Regardless of having users login, we recommend having a restore purchases button as to make any purchases the users will still be logged into an Apple app store account. Please see our article here about restoring purchases for more details: