简体   繁体   中英

Direct download and install ipa on iPhone

I already referred this link

I have a simple page where a user can download the iOS application from my server. The plist URL is

<a charset='UTF-8' href='itms-services://?action=download-manifest&url=<?php echo $ios_plist_url; ?>' >IOS Application</a>

When user clicks on above link then the safari browser prompts for app install. Which is expected behavior. But the problem is that when I try to redirect to the plist URL directly then the browser first prompts Open this page in "App Store?" and if user clicks Open then it will prompt for "Install" . Is there any way to bypass this app store alert?

Please suggest.

EDIT

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
    <dict>
        <key>assets</key>
        <array>
            <dict>
                <key>kind</key>
                <string>software-package</string>
                <key>url</key>
                <string>url to ipa</string>
            </dict>
            <dict>
                <key>kind</key>
                <string>full-size-image</string>
                <key>needs-shine</key>
                <false/>
                <key>url</key>
                <string>logo.png</string>
            </dict>
            <dict>
                <key>kind</key>
                <string>display-image</string>
                <key>needs-shine</key>
                <false/>
                <key>url</key>
                <string>logo.png</string>
            </dict>
        </array>
        <key>metadata</key>
        <dict>
            <key>bundle-identifier</key>
            <string>bundle</string>
            <key>bundle-version</key>
            <string>1.0.</string>
            <key>kind</key>
            <string>software</string>
            <key>subtitle</key>
            <string>XYZ</string>
            <key>title</key>
            <string>App Title</string>
        </dict>
    </dict>
</array>
</dict>
</plist>`

Unfortunately, you cannot bypass the dialogue. This is the default behavior for install link (from app store).

For test builds (Adhoc) it directly prompts for installation.

For reference, please check The Weather Channel on your iPhone safari browser.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM