How to link to apps on the app store - Printable Version +- 0Day Forums (https://zeroday.vip) +-- Forum: Coding (https://zeroday.vip/Forum-Coding) +--- Forum: Objective-C (https://zeroday.vip/Forum-Objective-C) +--- Thread: How to link to apps on the app store (/Thread-How-to-link-to-apps-on-the-app-store) |
How to link to apps on the app store - alister454 - 07-21-2023 I am creating a free version of my iPhone game. I want to have a button inside the free version that takes people to the paid version in the app store. If I use a standard link [To see links please register here] the iPhone opens Safari first, and then the app store. I have used other apps that open the app store directly, so I know it is possible. Any ideas? What is the URL Scheme for the app store? RE: How to link to apps on the app store - inositol331138 - 07-21-2023 Simply change 'itunes' to 'phobos' in the app link. [To see links please register here] Now it will open the App Store directly RE: How to link to apps on the app store - theodorkdylwkjf - 07-21-2023 If you want to link to a developer's apps and the developer's name has punctuation or spaces (e.g. Development Company, LLC) form your URL like this: itms-apps://itunes.com/apps/DevelopmentCompanyLLC Otherwise it returns "This request cannot be processed" on iOS 4.3.3 RE: How to link to apps on the app store - glasswort403 - 07-21-2023 This worked for me perfectly using only APP ID:<br> NSString *urlString = [NSString stringWithFormat:@"http://itunes.apple.com/app/id%@",YOUR_APP_ID]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]]; **The number of redirects is ZERO.** RE: How to link to apps on the app store - aethalium12085 - 07-21-2023 Apple just announced the appstore.com urls. [To see links please register here] >There are three types of App Store Short Links, in two forms, one for iOS apps, another for Mac Apps: > >##Company Name## > >iOS: [To see links please register here] ; for example,[To see links please register here] >>Mac: [To see links please register here] ; for example,[To see links please register here] >>##App Name## > >iOS: [To see links please register here] ; for example,[To see links please register here] >>Mac: [To see links please register here] ; for example,[To see links please register here] >>##App by Company## > >iOS: [To see links please register here] ; for example,[To see links please register here] >>Mac: [To see links please register here] ; for example,[To see links please register here] >>Most companies and apps have a canonical App Store Short Link. This canonical URL is created by changing or removing certain characters (many of which are illegal or have special meaning in a URL (for example, "&")). > >##To create an App Store Short Link, apply the following rules to your company or app name:## > >Remove all whitespace > >Convert all characters to lower-case > >Remove all copyright (©), trademark (™) and registered mark (®) symbols > >Replace ampersands ("&") with "and" > >Remove most punctuation (See Listing 2 for the set) > >Replace accented and other "decorated" characters (ü, å, etc.) with their elemental character (u, a, etc.) > >Leave all other characters as-is. > >Listing 2 Punctuation characters that must be removed. > >!¡"#$%'()*+,\-./:;<=>¿?@[\]^_`{|}~ > >Below are some examples to demonstrate the conversion that takes place. > > >##App Store## > >##Company Name examples## > >Gameloft => [To see links please register here] >>Activision Publishing, Inc. => [To see links please register here] >>Chen's Photography & Software => [To see links please register here] >>##App Name examples## > >Ocarina => [To see links please register here] >>Where’s My Perry? => [To see links please register here] >>Brain Challenge™ => [To see links please register here] RE: How to link to apps on the app store - ware313 - 07-21-2023 Try this way [To see links please register here] app ID here" return json.From this, find key "**trackViewUrl**" and value is the desired url. use this url(just replace `https://` with `itms-apps://`).This works just fine.For example if your app ID is xyz then go to this link [To see links please register here] Then find the url for key "**trackViewUrl**".This is the url for your app in app store and to use this url in xcode try this NSString *iTunesLink = @"itms-apps://itunes.apple.com/us/app/Your app name/id Your app ID?mt=8&uo=4"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]]; Thanks RE: How to link to apps on the app store - unfestival74386 - 07-21-2023 This is working and directly linking in ios5 NSString *iTunesLink = @"http://itunes.apple.com/app/baseball-stats-tracker-touch/id490256272?mt=8"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]]; RE: How to link to apps on the app store - ununiformed79571 - 07-21-2023 You can get a link to a specific item in the app store or iTunes through the link maker at: [To see links please register here] RE: How to link to apps on the app store - friel210 - 07-21-2023 This code generates the App Store link on iOS NSString *appName = [NSString stringWithString:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"]]; NSURL *appStoreURL = [NSURL URLWithString:[NSString stringWithFormat:@"itms-apps://itunes.com/app/%@",[appName stringByReplacingOccurrencesOfString:@" " withString:@""]]]; Replace itms-apps with http on Mac: NSURL *appStoreURL = [NSURL URLWithString:[NSString stringWithFormat:@"http:/itunes.com/app/%@",[appName stringByReplacingOccurrencesOfString:@" " withString:@""]]]; Open URL on iOS: [[UIApplication sharedApplication] openURL:appStoreURL]; Mac: [[NSWorkspace sharedWorkspace] openURL:appStoreURL]; RE: How to link to apps on the app store - coincident59 - 07-21-2023 I can confirm that if you create an app in iTunes connect you get your app id before you submit it. Therefore.. itms-apps://itunes.apple.com/app/id123456789 NSURL *appStoreURL = [NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id123456789"]; if ([[UIApplication sharedApplication]canOpenURL:appStoreURL]) [[UIApplication sharedApplication]openURL:appStoreURL]; Works a treat |