当前位置:网站首页>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>
边栏推荐
- [paper reading] a CNN transformer hybrid approach for coding visual neuralactivity into text
- 选 择 结 构
- Niuke topic -- binary search tree and bidirectional linked list
- Life game, universe 25 and striver
- 随机数公式Random
- Opencv (III) -- image segmentation
- Casadi -- detailed explanation of data types and introduction to basic operations
- 数据库基础
- 除了「加机器」,其实你的微服务还能这样优化
- JDBC connection database
猜你喜欢
随机推荐
牛客题目——二叉搜索树与双向链表
全局String对象(函数类型)+Math对象
自然排序:comparable接口,定制排序:compartor接口的区别
C语言之枚举和联合体
ES6数组的方法及伪数组转数组方法
JD Zhang Zheng: practice and exploration of content understanding in advertising scenes
Niuke topic -- binary search tree and bidirectional linked list
Stylelint check error: unexpected missing generic font family font family no missing generic family keyword
C language output string in reverse order
C语言之程序环境和预处理
Get the array list of the previous n days and the previous and subsequent days of the current time, and cycle through each day
node包依赖下载管理
牛客题目——判断是不是完全二叉树、平衡二叉树
jsp-El表达式,JSTL标签
2021-05-30
从零开始Blazor Server(1)--项目搭建
LNMP环境--部署wordpress
Fast Planner - detailed explanation of kinetic astar
[paper reading] single- and cross modality near duplicate image pairsdetection via spatial transformer compare
Codeforces Round #100 E. New Year Garland & 2021 CCPC Subpermutation







