I’m building an iOS app with a backend providing user accounts. Not sure what the best practice to integrate it.
Each user is supposed to have an active subscription (with a free trial in the beginning). I set this up in App Store Connect.
The backend includes a webhook that is triggered by RevenueCat. When anything happens, I refresh the latest customer info and update the User table.
In the iOS app, I use the RC API to retrieve the customer info and active subscriptions. I set the Transfer behavior to Block to make sure one subscription is good for one user account only. Whenever the user logs in, I updated the RC id with the proper user id.
Do I miss something? How to properly handle Restore purchase?