Question

How do you check getPurchaserInfo in the web

  • 20 April 2022
  • 1 reply
  • 70 views

Badge +2

I just started trying out RevenueCat today and I want some clarification about not being able to use an SDK for the web, hence not able to get `getPurchaseInfo` of a user to check what subscription the user is on. What would be the best way to do this?

I have a cross platform app built with capacitor for android, ios and also for web.

I am working on adding app purchases and stripe for web.

I realized that I cannot use the Ionic Capacitor sdk on the web. The error message says `cordova_not_available`, which makes sense.

 

So would this “plan checking”, have to be done on my backend side, where my backend does an API request to RevenueCat backend and my backend sends this information to the web client? Then, why not do it this way on the mobile app?


1 reply

Userlevel 5
Badge +10

Hi @Sihoon 

The best way to check subscription status on the web is to actually use our GET /subscribers endpoint

Reply