Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Direct link to app-store application in iOS 7

I have a free version of app. And there is a link to a full version in free app. The link works fine in iOS 6. But in iOS 7 it shows a blank page. Any help is appreciated!

The link I use:

- (void) getFull
{
    [self hideAnimated];
    NSString *iTunesLink = @"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=604760686&mt=8";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
}
like image 961
iWheelBuy Avatar asked Sep 28 '13 14:09

iWheelBuy


2 Answers

Pretty strange link you are using. I use:

http://itunes.apple.com/app/id<APP_ID>?mt=8

and everything works...

In apps supporting iOS6 and above, I suggest furthermore the use of StoreKit, so you can display your app page in the App Store without leaving your app. You can do that like this:

- (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController
{
   [viewController dismissViewControllerAnimated:YES completion:nil];
}

- (void)showAppWithIdentifier:(NSNumber *)identifier
{

  if ([SKStoreProductViewController class]) {
     SKStoreProductViewController *controller = [[SKStoreProductViewController alloc] init];
     controller.delegate = self;
     [controller loadProductWithParameters:@{ SKStoreProductParameterITunesItemIdentifier : identifier }
                          completionBlock:NULL];

     [self presentViewController:controller animated:YES completion:nil];
     return;
   }

    // Fall back to opening App Store for iOS 5.
    ... open the link as you are already doing
}
like image 184
sergio Avatar answered Nov 15 '22 03:11

sergio


Try this one, it's the new syntax with iOS 7 and replace APP_ID by your application's AppID.

itms-apps://itunes.apple.com/app/idAPP_ID

You can refer to this link and this one for more information and discussion about that.

like image 41
Jordan Montel Avatar answered Nov 15 '22 04:11

Jordan Montel