[英]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": [
"*"
]
}
]
}
}
但是,如果我嘗試在任何 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.