Solved

How to link user to cancel subscription page on React Native?

  • 20 February 2022
  • 2 replies
  • 728 views

Userlevel 1
Badge +8

I know its not possible to cancel a user’s subscription using the RevenueCat’s SDK however we want to build a user experience in the app where if a user presses on a ‘Cancel’ button we navigate the user to the settings app of their OS. For example in React Native you can use `Linking.openURL('app-settings://notification/')` to navigate the user to the notification's settings of the app. Does anyone know what the url is for the `manage subscription` setting page in iOS and Android? 

If you want to see a real-life example of this, check out the Strava App.

icon

Best answer by Andy 25 February 2022, 21:25

View original

2 replies

Userlevel 5
Badge +8

Hey @Walter Holohan

 

We have a property in PurchaserInfo called managementURL which you can use for this. The property also takes into account whether the purchase was made on Android, iOS or Stripe to take the customer to the appropriate URL. On iOS, it will send you directly to the Settings page if the purchase was made on the App Store. 

 

Userlevel 1
Badge +8

Thanks @Andy. That is very helpful. 

Reply