0

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>`
Community
  • 1
  • 1

1 Answers1

0

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.

Jitendra Singh
  • 2,103
  • 3
  • 17
  • 26
  • That is a real appstore link. But @VedPandya's link is different than app store. – Poles Mar 17 '17 at 13:51
  • If browser prompts Open this page in "App Store?" means AppStore app link is provided in plist file. – Jitendra Singh Mar 17 '17 at 14:01
  • But in Ved Pandya's case the url is not a app store url. – Poles Mar 17 '17 at 14:43
  • @Poles In the plist (in question) he has placeholder url to ipa, so I am not sure where is the application downloaded from....but if he getting that dialogue tell that the application is referenced from AppStore and in this case you can not avoid the dialogue. – Jitendra Singh Mar 19 '17 at 17:03