Are there any plans to support fetching Web Billing products on mobile platforms?
Context
We are using RevenueCat Web Billing to manage our web app subscriptions.
On the companion mobile app, we would like to show users some details regarding their subscription.
As such we are configuring our Purchases instance with the WebBilling API Key.
This works well for the most part - with entitlements & subscription expiration data coming in as expected on the CustomerInfo response.
Issue
Other information (such as price) can only be obtained via the product instance itself.
And any attempt to fetch the WebBilling product returns a “Not Found” error with it being obvious that the SDK is only searching among the PlayStore / AppStore products.
Furthermore, attempting to manually specify the store via the PurchasesConfiguration.Builder is also met with an exception. And sure enough, looking into the implementation reveals that the provided store is cast to the one native to the platform (e.g. on Android, the .toAndroidStore() function is called).
UseCases
Here are some use cases that the inability to fetch products is blocking:
- Using Paywalls to prepare users before forwarding them to the web app. Ideally we would leverage the flexibility of paywalls to create an upgrade screen with a single URL button linking to our domain. Unfortunately, paywalls need a package attached thus making it impossible for us to use them (because internally that product is fetched leading to an error)
- Fetching the price of the active subscription
- Obtaining the name of the subscription
- Getting any other information that is accessible via the product
Request
As you can hopefully see, this inability to interact with WebBilling products from inside the mobile app is proving to be very restrictive.
We’ve already been forced to resort to some in-house solutions to get around some of the use cases listed above. However, the Paywall one still stands and having to manage 2 sources of truth for our subscription details is less than ideal.
As such, it would be a huge help if it would be possible to:
Make the mobile SDK’s able to accept Store configurations other than the native platform ones - namely WebBilling
P.S. Any other viable workaround solutions are also appreciated as would be lifting the constraint that every Paywall needs to have a package.