Question

Deeplink to iOS subscription settings

  • 4 February 2022
  • 6 replies
  • 324 views

Badge +2

What’s the best way (when using RevenueCat) to create a link from your app that open up the native iOS subscription settings? 

 

E.g. user clicks button ‘manage subscription’ → the iOS settings opens up to the subscriptions page.

 

Thanks!


6 replies

Userlevel 3
Badge +8

Hi @TK01,

On the latest version of the SDK, you can use the `managementURL` property of PurchaserInfo: https://github.com/RevenueCat/purchases-ios/blob/ed2b2a1cc72ad1d80dd8e7de187eaf9ff62a8eae/Purchases/Public/RCPurchaserInfo.h#L70-L75 

Our beta version will have a dedicated method for this: https://github.com/RevenueCat/purchases-ios/blob/main/Purchases/Purchasing/Purchases.swift#L1305-L1323 

Badge +2

Sundeep, thanks for the reply. I forgot to mention I’m using the Flutter version of RevenueCat SDK. Is there an equivalent way to do this in Flutter? Thanks.

Userlevel 3
Badge +8

@TK01 it’s also inside PurchaserInfo as `managementURL`, you can see the exact format here: https://github.com/RevenueCat/purchases-flutter/blob/b7854231f530998871fe51c8ae0e67ae72c4aad2/lib/models/purchaser_info_wrapper.dart#L68 

Badge +2

This is perfect, thank you!

Badge

I am just starting out with RevenueCat and Flutter SDK.  

On IOS I can retrieve the offers and make a purchase.  

Currently when I get the CustomerInfo the managementUrl is blank.  

What causes this management URL to be blank?  How do I get a valid URL?

Badge

managementUrl is valid after a purchase is made.

Reply