簡體   English   中英

iOS:通用鏈接僅適用於 Safari

[英]iOS: Universal links only work from Safari

當用戶在我的應用程序中填寫注冊表時,我會向他發送一個 email 和鏈接以確認他的注冊。 當他點擊鏈接時,他應該被重定向到我的應用程序。 但這僅在我在 Safari 中打開 gmail 時才有效。 When I go trough the Gmail app it opens the link inside gmail in some WKWebView and the built in mail app opens it in Safari. 這是我的蘋果應用網站關聯文件:

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "4DD4JT5DY34.com.edgepatrick.pinkpenguin",
                "paths": [
                    "*"
                ]
            }
        ]
    }
}
  • 我用AASA Validator測試了我的 apple-app-site-association 文件,它表明一切都是有效的
  • 當我訪問我的網站時,它會顯示智能橫幅正確啟動我的應用程序

但是,如果我嘗試在任何 email 應用程序中打開鏈接,它會在 Safari 中/應用程序內部打開。

所以問題是這樣的:

I'm using SendGrid to send the verification email, the link in the mail looks like this https://auth.pinkpenguin.tech/nmc/j25OP~~Eg but in reality the url points to some SendGrid url https://u1953582.ct.sendgrid.net/wf/click?upn=LQJuwSFztYcP....然后重定向到我的 pinkpenguin 鏈接,當我刪除該重定向時,它在 Gmail 和默認郵件應用程序中都可以正常工作。

也是一個類似的問題,可能會對某人有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM