Download the iOS app without redirecting to the App Store

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

The scenario I'm working on is one where the user is presented with a list of applications that they can download, but I do not want them to leave the application.

I tried to find the iTunes API for this, but found nothing.

+4
source share
2 answers

SKStoreProductViewController lets you do this. You just set up the itunes id of the application 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 presentation table with a list of applications that you want to download, each with their itunes identifier, and when you select one of the elements, you can present the view controller.

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

Usage example:

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];
            }
        }];
+8
source

, . . Apple develoer ID iTnues , iPhone iTnues, . ITnues , , iPhone ( , ).

.

0

Source: https://habr.com/ru/post/1533885/


All Articles