美文网首页
IOS升级微信登录SDK 1.8.6以上对接系列问题

IOS升级微信登录SDK 1.8.6以上对接系列问题

作者: 张威_9cfe | 来源:发表于2021-03-18 11:48 被阅读0次

    问题一:由于Usee定制APP也需要用微信登陆,apple-app-site-association文件的配置

    解决:不需要多个apple-app-site-association文件对应不同的 bundle ID,只需要一个apple-app-site-association文件可以配置多个APP的universal link路径

    apple-app-site-association文件配置如图:

    apple-app-site-association

    让杨工帮忙把这个json文件上传到www.seetong.com的.well-known目录

    1.关于Universal Link请求apple-app-site-association时机:

    当我们的App在设备上第一次运行时,如果支持Associated Domains功能,那么iOS会自动去GET定义的Domain下的apple-app-site-association文件,iOS会先请求https://domain.com/.well-known/apple-app-site-association,如果此文件请求不到,再去请求https://domain.com/apple-app-site-association,所以如果想要避免服务器接收过多GET请求,可以直接把apple-app-site-association放在./well-known目录下,服务器上apple-app-site-association的更新不会让iOS本地的apple-app-site-association同步更新,即iOS只会在App第一次启动时请求一次,以后除非App更新或重新安装,否则不会在每次打开时请求apple-app-site-association

    2.对于"paths" 字段

    1、访问 https://www.seetong.com/usee/app/

    匹配到”usee/app/“ ,会访问跳转 “7T55TZML9J.com.lnw.Ueye” 这个应用

    2、访问 https://www.seetong.com/lenovo/usee/2021/

    匹配到”usee/app/“ ,会访问跳转 “7T55TZML9J.com.lnw.Ueye” 这个应用

    3、访问 https://domain.com/usee/

    “/usee/” 啥也没有匹配到,就会匹配任意 “*”,会访问跳转 “B4PCFDPGSV.com.seetong.seetong” 这个应用

    xcode工程配置:

    问题二:IOS14 universal link不能正常使用

    IOS14控制台log:

    WeChatSDK step 5, 0, Universal Link check failed. The application is launched by WeChat via scheme, Common problems self-check guide: [微信开放平台App iOS端接入新版本SDK 常见问题自查指引]https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409

    解决:让杨工帮忙在海外服务器也要上传apple-app-site-association文件

    问题三:微信登录出现未知的应用请求,并且每次都有向用户申请授权微信登录的问题

    1.去掉微信自检函数

    2.改为Release编译

    微信登录SDK对接参考资料:

    微信官方说明文档:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html

    官方问题排查文档:https://docs.qq.com/doc/DZHNvSGJLS3pqbHNl

    https://blog.csdn.net/qcx321/article/details/103784060

    http://www.bubuko.com/infodetail-3357527.html

    https://blog.csdn.net/Loving_iOS/article/details/103933896?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control&dist_request_id=&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control

    https://blog.csdn.net/wisudom/article/details/106431078

    https://gsl201600.github.io/2019/11/06/iOS%E5%94%A4%E8%B5%B7APP%E4%B9%8BUniversal%20Link/

    相关文章

      网友评论

          本文标题:IOS升级微信登录SDK 1.8.6以上对接系列问题

          本文链接:https://www.haomeiwen.com/subject/fwxecltx.html