I have an iOS app which uses the RevenueCat Swift SDK and an web app which uses Stripe. Both apps are powered by Firebase as the backend. I want to sync the subscriptions between them.
I installed Firebase extensions for RevenueCat and Stripe. Both extensions set custom authentication claims in the user’s access token. Is that a good way to sync purchases?
Are there any other easy ways to sync the purchases? (by easy I mean little or zero backend work).
Another option I’m exploring is to setup a listener for user document in Firestore, which is updated by both the extensions (RevenueCat and Stripe). So when any changes happen to that document, I can update the subscription info in the apps.
PS: Actually, having to write backend code to sync purchases between web and iOS makes me think the purpose of using RevenueCat is lost.