How to link to the page of a single author/company page on the App Store?

好久不见. 提交于 2019-11-28 21:39:34
Phoo
NSString *str = @"itms-apps://ax.search.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?media=software&term=glbasic";
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:str]];

That seems to work for me!!

Even easier are the itunes.com urls. http://itunes.com/CompanyName (remove any spaces in the company).

Here's what I found works for me, redirecting from within an iPhone app. This goes directly to the App Store app:

NSString *iTunesLink = @"itms-apps://itunes.com/apps/companyname/";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

Simply substitute in the name of the app developer for "companyname".

Here's the latest answer with a link to Apples Dev guidelines and examples.

// Goes to App Store
NSString *iTunesLink = @"itms-apps://itunes.com/apps/gameloft/";  
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

How to Launch App store from iOS Application

How Apple says to do it - Company Store link

Try replacing itunes with phobos, e.g.:

http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=293559501

Links to phobos.apple.com will open in the App Store application, while links to itunes.apple.com will open in the iTunes application.

Sixten Otto

So, the procedure in Apple's Technical Q&A on the subject doesn't work? (That seems to match Jason's answer that you said was not successful.) It did work for the user that posted this other question and this one, although perhaps the difference is linking to an app versus linking to a company?

The answer by @JohnFricker worked best for me. Although it's worth noting that I had to remove all spaces and punctuation from the developer name. I tried it with spaces removed but not punctuation and it still didn't work.

Using the previous answers as guidelines, I did the following:

  1. Google an example app from your company and bring it up as an iTunes preview page (example: https://itunes.apple.com/gb/app/facebook/id284882215?mt=8)
  2. In the top right of that page, right click the link entitled "View more by this developer" and copy that link (example: https://itunes.apple.com/gb/artist/facebook-inc./id284882218)
  3. You can then change it so that it uses itms-apps instead of https, as below:

    itms-apps://itunes.apple.com/gb/artist/facebook-inc./id284882218
    

When used in app this will open up the App Store on a nice page with your company name at the top and all the apps listed below. You can copy and paste the link into the address bar of mobile Safari to see a preview of it in the App Store without having to delve into any code.

I think the Apple sample code has a bug. Change

self.iTunesURL = [response URL];

to

self.iTunesURL = [request URL];

simply go to itunes than click on the name of your company , copy and paste it whereever you want . i think previous answers were usefull for previous versions of itunes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!