問題一:由于Usee定制APP也需要用微信登陸碗短,apple-app-site-association文件的配置
解決:不需要多個(gè)apple-app-site-association文件對(duì)應(yīng)不同的 bundle ID描焰,只需要一個(gè)apple-app-site-association文件可以配置多個(gè)APP的universal link路徑
apple-app-site-association文件配置如圖:
讓楊工幫忙把這個(gè)json文件上傳到www.seetong.com的.well-known目錄
1.關(guān)于Universal Link請(qǐng)求apple-app-site-association時(shí)機(jī):
當(dāng)我們的App在設(shè)備上第一次運(yùn)行時(shí),如果支持Associated Domains功能谐宙,那么iOS會(huì)自動(dòng)去GET定義的Domain下的apple-app-site-association文件,iOS會(huì)先請(qǐng)求https://domain.com/.well-known/apple-app-site-association换衬,如果此文件請(qǐng)求不到爷辱,再去請(qǐng)求https://domain.com/apple-app-site-association,所以如果想要避免服務(wù)器接收過多GET請(qǐng)求煤傍,可以直接把a(bǔ)pple-app-site-association放在./well-known目錄下矾兜,服務(wù)器上apple-app-site-association的更新不會(huì)讓iOS本地的apple-app-site-association同步更新,即iOS只會(huì)在App第一次啟動(dòng)時(shí)請(qǐng)求一次患久,以后除非App更新或重新安裝椅寺,否則不會(huì)在每次打開時(shí)請(qǐng)求apple-app-site-association
2.對(duì)于"paths" 字段
1、訪問 https://www.seetong.com/usee/app/
匹配到”usee/app/“ 蒋失,會(huì)訪問跳轉(zhuǎn) “7T55TZML9J.com.lnw.Ueye” 這個(gè)應(yīng)用
2返帕、訪問 https://www.seetong.com/lenovo/usee/2021/
匹配到”usee/app/“ ,會(huì)訪問跳轉(zhuǎn) “7T55TZML9J.com.lnw.Ueye” 這個(gè)應(yīng)用
3篙挽、訪問 https://domain.com/usee/
“/usee/” 啥也沒有匹配到荆萤,就會(huì)匹配任意 “*”,會(huì)訪問跳轉(zhuǎn) “B4PCFDPGSV.com.seetong.seetong” 這個(gè)應(yīng)用
xcode工程配置:
問題二:IOS14 universal link不能正常使用
IOS14控制臺(tái)log:
WeChatSDK step 5, 0, Universal Link check failed. The application is launched by WeChat via scheme, Common problems self-check guide: [微信開放平臺(tái)App iOS端接入新版本SDK 常見問題自查指引]https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409
解決:讓楊工幫忙在海外服務(wù)器也要上傳apple-app-site-association文件
問題三:微信登錄出現(xiàn)未知的應(yīng)用請(qǐng)求铣卡,并且每次都有向用戶申請(qǐng)授權(quán)微信登錄的問題
1.去掉微信自檢函數(shù)
2.改為Release編譯
微信登錄SDK對(duì)接參考資料:
微信官方說明文檔: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/