Skip to main content
Question

How to cancel Google subscription through the SDK


Forum|alt.badge.img+1
  • Active Member
  • 14 replies

Google’s new policy needs apps to cancel subscriptions. I am not using any backend (Firebase only). The REST API needs a secret key to do the cancellation which I shouldn’t include in my app’s code.

So how can I do this?

2 replies

Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 236 replies
  • August 2, 2022

Hi! 👋🏻 There’s no direct way of doing it through the device. I.e.: there’s no API that you can call directly, either in Google’s Billing client or our SDK. 

The closest thing you can do is to open up the management URL. So you can provide a “manage subscription” button, and then open up the managementURL in the SDK (found in purchaserInfo / customerInfo). 

The user will be able to cancel their own subscription from there. 

 

Hope this helps! 


Forum|alt.badge.img+1
  • Author
  • Active Member
  • 14 replies
  • August 4, 2022

yes it helps, I wasn’t aware that the user can do it himself when the link opens thanks.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings