Blog icon indicating copy to clipboard operation
Blog copied to clipboard

iOS9检测微信、百度地图等三方安装

Open dabing1022 opened this issue 9 years ago • 1 comments

在iOS9以前,检测微信是否安装,用微信SDK中的[WXApi isWXAppInstalled]来检测就可以了,但在iOS9之后,需要在Info.plist中将要使用的URL Schemes列为白名单,才可正常检查应用是否安装。

<key>LSApplicationQueriesSchemes</key>
    <array>
        <string>wechat</string>
        <string>weixin</string>
        <string>baidumap</string>
        <string>iosamap</string>
                <string>mqq</string>
                <string>weibo</string>
                <string>tencentweibo</string>
                <string>sinaweibo</string>
    </array>
<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>

常用App URL Scheme

dabing1022 avatar Sep 23 '15 03:09 dabing1022

补充:iOS9适配系列教程

dabing1022 avatar Dec 04 '15 06:12 dabing1022