I’m creating a webbapp (web + ios + android) and I’m setting up a minimal subscription support, using Revenuecat as source of truth.
My implementation:
The bakend receives a webhook call both from RevenueCat or for the frontend (when subscription succeeded). It just tates revenuecat app_user_id field OR the user_id (if is a frontend call, which is the same as app_user_id), and checks against RevenueCat the user entitlements, updating the associated entitlement object in the backend database. We dont care about different fields for each event kind
Summary:
Each time something happens (event), my backend doesn’t even care about the payload of the call, it just update entielements expiration in the database. This allow me to be completely agnostic to the platforms: IF SOMETHING HAPPENS → UPDATE ENTITLEMENTS.
The problem comes to present a Manage Subscription button in the frontend. Because I don’t know or store the platform through the user has subscribed to my App.
That leaves me to the question itself: How can get the managementUrl of the active user subscription that granted an entitlement, having only user id, id of the entitlement granted, and project id?
Question
How to get to the managementUrl of the subscription that gave an entitlement

Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.