Cancel auto-renewal subscriptions with Swift

Nikolaj Nielsen picture Nikolaj Nielsen · Aug 24, 2015 · Viewed 10.2k times · Source

I want to create a button where a user can cancel a auto-renewal subscription (or get redirected to App Store).

Is that possible without the user having to go through the whole purchase process first? If it is, how would you go about doing it?

Answer

vfxdev picture vfxdev · Oct 28, 2019

December 2019

The correct URL is now https://apps.apple.com/account/subscriptions according to Apple's Handling Subscriptions Billing Documentation.

So just use:

UIApplication.shared.open(URL(string: "https://apps.apple.com/account/subscriptions")!)