Absolute Ripple
  • Absolute Ripple
  • Contact

Link to app in the Apple app store from inside your app

13/2/2012

0 Comments

 
Create a helper method:
- (void)openWithLink:(NSString *)urlLink
{
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlLink]];
}

Call the method:
[self openWithLink:@"THE_LINK"];

Replaces THE_LINK with the actual link, which can take a number of forms:

1. (Link directly to the app - method 1) http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=YOUR_APP_ID        e.g. http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=498871441
2. (Link directly to the app - method 2) http://itunes.apple.com/app/idYOUR_APP_ID
   e.g. http://itunes.apple.com/app/id488561581
3. (Link directly to the app - method 3) http://itunes.com/apps/YOUR_APP_NAME
    e.g. http://itunes.com/apps/memorable
4. (Link to your company) http://itunes.com/apps/YOUR_COMPANY_NAME
    e.g. http://itunes.com/apps/absoluterippleptyltd
5. (Link to the rating page of your app)
    NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa";
    str = [NSString stringWithFormat:@"%@/wa/viewContentsUserReviews?", str];
    str = [NSString stringWithFormat:@"%@+Software&id=", str];
    //- replace the following with your app id from iTunes Connect
    str = [NSString stringWithFormat:@"%@YOUR_APP_ID", str];

One point to note about all these url scheme is that they can (and do) change. You must test the link out inside your app to make sure it is working.

Optional:
You can replace 'http' with 'items-apps'. e.g. itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=498871441
This will supposedly  open the App Store app directly, whereas the 'http' will first invoke Safari and then redirect to the App Store app. In practice, this doesn't seem to happen all the time.

See: Technical Q&A QA1633 Creating easy-to-read links to the App Store for your applications and company

0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    August 2013
    July 2013
    June 2013
    May 2013
    January 2013
    October 2012
    September 2012
    March 2012
    February 2012

    Categories

    All
    Apple Policy
    In App Purchase
    Ios Programming
    Our Apps

    RSS Feed

    Disclaimers

    Here are some resources that I find useful in writing iOS apps. These are not necessarily unique as they are based on various sources online.
    This is mainly to provide a source of reference to myself and my associates but if it can be of use to someone else, that is good.
    Note that information is provided here as is. Use at your own risk. There is no guarantee that it is accurate. We will update the information as time and resources permit.

    Powered by Create your own unique website with customizable templates.