Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I Launch The Appstore App Directly from my Application

I've used several apps now that launch the itunes store directly from the app. I'm even using some on my 2.1 iPod 2G.

I know there's a bug in 2.1 that prevents appstore links from working in safari, but somehow people are launching the appstore directly, not even through safari.

How do you do this? Is it an undocumented openURL feature?

like image 412
Jeff Avatar asked Oct 22 '08 18:10

Jeff


1 Answers

To be extremely concise:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/appname"]]; 

If you want to send to all the apps for a developer, use

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/developername"]]; 

These work for iOS 4.1

See Also How to link to apps on the app store

like image 187
user160917 Avatar answered Oct 19 '22 23:10

user160917