uchicago-mobi / 2015-Spring-Forum

1 stars 0 forks source link

Linking to App Store from Favorites List #60

Closed tabinks closed 9 years ago

tabinks commented 9 years ago

This is duplicate of answer in #52.

This works to launch the App Store app directly to the URL. Notice you have to replace https: with itms-apps://in the URL that comes from the sharing extension.

UIApplication.sharedApplication().openURL(NSURL(string: "itms-apps://appsto.re/us/6iThB.i")!)
alextsu commented 9 years ago

Not sure if anyone else encounter this, but I tried the itms-apps:// URL and, while the URL led to the app store, it only opened up the home page of the app store. It did not open the particular App page that I was looking for.

I tried the regular https:// URL and my app opened up safari, and safari, in turn, opened up the correct app page in the App Store.

Was this the case for anyone else as well?

drefiuza commented 9 years ago

I didn't append https:// or itms-apps:// and all links are working for me, as you described—safari -> app store.

tabinks commented 9 years ago

That's interesting. I tried on a couple devices and I go directly to app store with a redirect from Safari. Either way, don't worry about it. As long you as you get to the App Store, that will be ok for the assignment.

Jerry-J-Yu commented 9 years ago

I sort-of encountered this. When I use "itms-apps://", on the first launch from the wish list it will go to the correct App page on the app store, but on any subsequent launches it will just go to the app store home page.