Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dabing1022 opened this issue Sep 23, 2015 · 1 comment
Open

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

dabing1022 opened this issue Sep 23, 2015 · 1 comment

Comments

@dabing1022
Copy link
Owner

在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
Copy link
Owner Author

补充:iOS9适配系列教程

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant