天天看點

ios通過浏覽器下載下傳安裝app

方法:通過itms-services://?action=download-manifest&url=https://xxxxx.plist 連結方式下載下傳

plist檔案(必須為https協定位址)

<?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>https://xxxxxxx/pms.ipa</string> //ipa資源位址(https協定)
                </dict>
                <dict>
                    <key>kind</key>
                    <string>display-image</string>
                    <key>needs-shine</key>
                    <true/>
                    <key>url</key>
                    <string>https://xxxxxxxx/app_icon.png</string> //圖示位址
                </dict>
                <dict>
                    <key>kind</key>
                    <string>full-size-image</string>
                    <key>needs-shine</key>
                    <true/>
                    <key>url</key>
                    <string>https://xxxxxxxx/app_icon.png</string> //完整尺寸圖示位址
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>xxxx</string> // 包名
                <key>bundle-version</key>
                <string>1.0.0</string> //版本号
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>xxx</string> // 軟體名
            </dict>
        </dict>
    </array>
</dict>
</plist>

           

繼續閱讀