I would like to send a user to the iOS app store update page so they can update my app when prompted, so I can require that users update the app if the update contains critical security fixes, or something else vital.
I believe that I have found a link that I can send the user to the update page, which is
itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=<appid>&mt=8
So in my case I would use
UIApplication.sharedApplication().openURL(
NSURL(
string: "itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=969701501&mt=8"
)!
)
But I am not able to test it, because I am given a 404 page in the app store when I try
I'm assuming that I get this because the app was not actually downloaded from the app store (it was put onto my test device from Xcode), and I'm unable to test the link because I would need to download the application from the app store if my assumption is correct.
I've looked into using an itunes.apple.com
link, but that redirects
to the app page, and although that page does have an update button, phobos.apple.com
seems to be better because it only contains information about the update, and the new features in it, making it more user friendly.
Is my link correct for iOS 9
, or is there a different/better method to send the user to the app store's Update App page? Even better, is there any way to prompt the user to update the app via an alert (kind of like requesting access to camera roll or location services, but updating the application)