当前位置:网站首页>Swift QQ授权登录 坑集
Swift QQ授权登录 坑集
2022-07-27 14:55:00 【CAir2】
首先参考官网文档:https://wiki.connect.qq.com/sdk%e4%b8%8b%e8%bd%bd
由于QQ官网文档介绍很xxx,建议优先集成微信,微信文档很全。这样可以避免QQ一些坑。
如果使用unionid,一定要注意改说明: https://wiki.connect.qq.com/unionid%e4%bb%8b%e7%bb%8d
下面以当前版本是3.5.7为例开始集成

Note:必须设置 Universal Links,否则回调可能不触发
集成sdk,此时官网有些需要注意,如下:
1. libstdc++.dylib 可以不需要
2. 桥接导入sdk的会报错:https://www.jianshu.com/p/d053e54a2542
3. 必须在SceneDelegate里面处理Universal Links和handleOpen Url,否则回调也不会触发

这里如果不处理handleOpen,则扫码登录不会触发(可以参考微信QQ支付)。
桥接头文件包含:
#import <TencentOpenAPI/TencentOpenApiUmbrellaHeader.h>
边栏推荐
猜你喜欢
随机推荐
Circular statements and arrays
领导:谁再用redis过期监听实现关闭订单,立马滚蛋!
使用百度飞桨EasyDL实现电商UGC图片自动分类
Json数据的格式使用
Operators of C language
LNMP environment - deploy WordPress
2021-05-30
合工大苍穹战队视觉组培训Day8——视觉,目标识别
Handling of multiple parts with duplicate names and missing parts when importing SOLIDWORK assemblies into Adams
[paper reading] a CNN transformer hybrid approach for coding visual neuralactivity into text
Data collection: skillfully using Bloom filter to extract data summary
Cryptography series: certificate format representation of PKI X.509
Measured: the performance of cloud RDS MySQL is 1.6 times that of self built
C语言之函数
被动收入:回归原始且安全的两种赚取方法
C语言之程序环境和预处理
京东张政:内容理解在广告场景下的实践和探索
Shardingsphere-proxy-5.0.0 distributed snowflake ID generation (III)
Opencv (III) -- image segmentation
Gurobi——GRBEnv









