iPhone URL下载ipa包遇到的坑

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_39634987/article/details/84170496

因为苹果强制所有 app 满足 HTTPS,即 iOS9 推出的 App Transport Security (ATS) 特性。
输入域名,检查您的 iOS app 是否满足 ATS 特性。 

所以在服务器上安装了https证书()

发现还是不行,仔细对照文档,改端口试发现怎么都不

最后发现了以下几点坑

1,iis服务器配置没问题,检查一下阿里云有没有配https端口

2,苹果url地址必须是一个这样的格式

if (isIOS) {

document.location.href = 'itms-services://?action=download-manifest&url=https://www.xxx.com:8009/xxx.xml';

}

这里的xml文件是调起AppStore的软件安装提示

.xml文件里的内容

<plist version="1.1">

<dict>

<key>items</key>

<array>

<dict>

<key>assets</key>

<array>

<dict>

<key>kind</key>

<string>software-package</string>

<key>url</key>

<string>

https://www.45678yx.com:8009/JianFeng/Mobile/JianFeng.ipa

</string>

</dict>

</array>

<key>metadata</key>

<dict>

<key>bundle-identifier</key>

<string>ssss(这里的app的唯一标示具体什么打包ipa的应该清楚)</string>

<key>bundle-version</key>

<string>1.0.0(版本号)</string>

<key>kind</key>

<string>software</string>

<key>subtitle</key>

<string>游戏下载</string>

<key>title</key>

<string>游戏下载</string>

</dict>

</dict>

</array>

</dict>

</plist>

猜你喜欢

转载自blog.csdn.net/qq_39634987/article/details/84170496