一.需求:ios企业包在微信客户端下载企业包并在除微信,QQ等app内置浏览器以外的其他浏览器完成企业证书快速认证
二.操作步骤:
1.企业包上传到服务器并获取企业包地址,例如:
http://xxx.xxxxxxxx.net/youxi.ipa
2.配置一个后缀为.plist的文件,里面有各项有关下载包的配置字段,其中必要的下载地址的配置如下

其他的字段根据需要进行添加
3.html页面中需要添加一个a标签(或者使用location.href)
设置href属性如下:
itms-services://?action=download-manifest&url=“plist文件地址”
4.在页面中添加另一个a标签
设置href属性如下:
xxxx.xxx.xxx.app.mobileprovision
(其中app.mobileprovision)为企业包证书,此文件的获取步骤如下
a.提供企业包如下,解压企业包获得后缀名为.app的文件

b.按下图路径查看.app的文件

c.在上述的.app文件右键-显示包内容可看到如下文件即为需要的文件(此文件可修改名称):

上述步骤即可完成需求一
网友评论