Hey!
I wanted to make sure I understand the recommended approach of handling in-app purchases.
Let’s assume my app has only one app store in-app purchase that charges on per-month basis.
The app itself will run on IOS and is written in swift.
My current authentication flow is as follows:
the user opens the app and can log in or register via firebase with: Apple Account, Google Account, regular email + password account.
What I don’t really understand is:
- Should I set the revenue cat userID to the firebase user ID in this case?
- When I set the userID to firebase user ID will the subscription only be active for this single account that was used to log in?
- Is there already some implementation that returns or informs the app when user is signed in but his purchase (membership) expired?
- How can you implement a 7-day trial in this case?
- The purchase is made by an apple ID account, but the beneficiary is the actual account that was used to log in in this case?
- Is there some event that can notify the firebase app when the purchase is made? What if that api call failed once (the event fails), would that mean that the user lost their subscription somehow? (his ID was not persisted as a member)
- How much things should I leave up to revenuecat backend/framework and what are the things that are actually needed to be implemented when integrating with firebase?
Sorry if these questions may be obvious or stupid, but I wanted to make sure I understand this correctly