Jenson
Jenson

Reputation: 53

Download iOS app without redirecting to App Store

Is there a way to allow a user to download & install an iOS app while using another app without redirecting them to the App Store?

The scenario that I'm working on is one where the user is presented with a list of apps that they may choose to download but I do not want them to leave the app.

I tried to search for an iTunes API to do this but I did not find anything.

Upvotes: 5

Views: 1124

Answers (2)

Bhanu
Bhanu

Reputation: 1249

Yes it is possible. some certain step needs. First login with Apple develoer ID into iTnues in your PC which you are using in iPhone's iTnues, Now browse apps in PC's iTnues there download option will show and download directly from PC , then your app will automatically download to your iPhone in background (it doesn't matter you have app in foreground).

May this help you..

Upvotes: -1

Andrew
Andrew

Reputation: 3251

SKStoreProductViewController will allow you to do that. You just set up the itunes ID of the app that you want to download and then you present it as a modal view and the user can take it from there.

You can have a table view with the list of apps that you want the user to download, each with their itunes ID and on selecting one of the items, you can present the view controller.

It looks something like this (iOS 6 screenshot) enter image description here

Example use:

SKStoreProductViewController *storeViewController = 
              [[SKStoreProductViewController alloc] init];

        storeViewController.delegate = self;

        NSDictionary *parameters =
             @{SKStoreProductParameterITunesItemIdentifier: 
                  [NSNumber numberWithInteger:333700869]};

        [storeViewController loadProductWithParameters:parameters 
             completionBlock:^(BOOL result, NSError *error) {
            if (result) {
                [self presentViewController:storeViewController
                                   animated:YES
                                 completion:nil];
            }
        }];

Upvotes: 9

Related Questions