I am creating an app, in which you can buy consumables via StoreKit2. Those consumables represent an available request for a feature in my app. Right now, I am storing this value (an Integer) in UserDefaults. My problem now is, that I am not sure, if this is within the rules of Apple/ or even legal. If a user deletes the app, his/her purchased available request would be gone and not restorable. If I store the value of available requests inside my backend database, it would be possible to change values by hand, which might be a problem for Apple too.
Is there any specific guideline I am missing, that covers the handling of this problem, or does anybody know how it should be done? Thanks in advance!