2021-11-18 iOS share sdk 大坑集锦

2021-11-21  本文已影响0人  cc帅气的昵称

#1.sdk初始化时

// 大坑: enableUniversalLink 为yes时 未安装客户端 无回调

    [ShareSDK registPlatforms:^(SSDKRegister *platformsRegister) {

          //QQ

          [platformsRegistersetupQQWithAppId:@"101970968" appkey:@"5ee10e4d2886e7a050e9e1fdb6efa872" enableUniversalLink:NO universalLink:@"https://qtv0p.share2dlink.com/qq_conn/101970968"];

           //更新到4.3.3或者以上版本,微信初始化需要使用以下初始化

          [platformsRegistersetupWeChatWithAppId:@"wx4ca938abe8cb3ce1" appSecret:@"eacebf6dd96fa18f24d848ab673d7fc9" universalLink:@"https://qtv0p.share2dlink.com/"];

          //新浪

          [platformsRegistersetupSinaWeiboWithAppkey:@"4082938830" appSecret:@"552c7e3bc5fb2f452d577393fbcc4f42" redirectUrl: @"http://www.sharesdk.cn" universalLink:@"https://qtv0p.share2dlink.com/"];

    }];

上一篇 下一篇

猜你喜欢

热点阅读