友盟分享需要注意的事项

 

分享的时候,打开其他app,需要设置plist文件相应的属性 

 

步骤一:(这里示范添加qq)

<key>CFBundleURLTypes</key>

<array>

<dict>

<key>CFBundleURLSchemes</key>

<array>

<string>QQ05FC5B11</string>

</array>

</dict>

</array>

 

步骤二:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>mqqOpensdkSSoLogin</string>
    <string>mqzone</string>
    <string>sinaweibo</string>
    <string>alipayauth</string>
    <string>alipay</string>
    <string>safepay</string>
    <string>mqq</string>
    <string>mqqapi</string>
    <string>mqqopensdkapiV3</string>
    <string>mqqopensdkapiV2</string>
    <string>mqqapiwallet</string>
    <string>mqqwpa</string>
    <string>mqqbrowser</string>
    <string>wtloginmqq2</string>
    <string>weixin</string>
    <string>wechat</string>
</array>

在plist文件加上这些就好了——iOS分享, 除了要在项目info URL Types中设置URL Schemes,还需要在info.plist里面增加可信任的调用app

步骤三:

在appdelegate中设置

[UMSocialQQHandler setQQWithAppId:@"100424468" appKey:@"c7394704798a158208a74ab60104f0ba" url:@"http://www.umeng.com/social"];

 

posted @ 2016-05-16 17:05  handsomeBoys  阅读(178)  评论(0编辑  收藏  举报