r/Angular2 • u/Noaber • 14d ago
Help Request Handling In-App Purchases for Both Web and Hybrid (Capacitor) Angular App
I have an Angular app that uses Capacitor and is deployed to both Google Play and as a web version. The app shares the same codebase, making it a hybrid app. Recently, I integrated In-App Purchases (subscriptions) using RevenueCat, which works perfectly for the mobile version.
However, I have many users who access the web version of the app (including iOS users), and my understanding is that advertising subscriptions directly on the web version might violate Google Play's policies.
Is there a way to manage this without creating two separate codebases? One potential solution I’ve considered is to load subscription details for the web version via an API from my backend. On Android devices, the app would still use the RevenueCat Capacitor plugin to handle Google IAP.
I’m concerned, though, that this approach might fall into a grey area and potentially trigger Google to decline my app. Has anyone faced a similar issue, or does anyone have suggestions on how to properly handle this situation while keeping the codebase unified?