Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cancel auto-renewal subscriptions with Swift

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?

like image 772
Nikolaj Simonsen Avatar asked Aug 24 '15 09:08

Nikolaj Simonsen


People also ask

How do I turn off auto renewal on iOS Swift?

Rather than needing to code your own subscription management UI, your app can open the following URL: https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions Opening this URL launches iTunes or iTunes Store, and then displays the Manage Subscription page.

How do I stop my renewal subscription?

On your Android device, go to your subscriptions in Google Play. Select the subscription you want to cancel. Tap Cancel subscription. Follow the instructions.

Will turn off automatic renewal cancel your subscription?

When you turn off automatic renewal, your Subscription will remain active until the end of its term and you will not receive any refunds or credits.


2 Answers

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")!) 
like image 189
vfxdev Avatar answered Oct 08 '22 10:10

vfxdev


From the Apple In-App Purchase Programming Guide -

Rather than needing to code your own subscription management UI, your app can open the following URL:

https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions Opening this URL launches iTunes or iTunes Store, and then displays the Manage Subscription page.

So, simply create a button that launches that URL.

UIApplication.shared.openURL(URL(string: "https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions")!) 
like image 35
Paulw11 Avatar answered Oct 08 '22 11:10

Paulw11