在 iOS 推送通知深度链接上阻止 "Would you like to open (URL)" 对话框

Prevent "Would you like to open (URL)" dialog on iOS push notification deep linking

我在推送通知中使用深度 links(使用 OneSignal + React Native)来打开我的应用程序的特定部分。最近我的用户在点击推送通知时开始收到以下确认信息(以前不是这样):

从用户体验的角度来看,这是不可接受的,以前也不是这种情况(点击用于直接启动应用程序相应部分的推送通知)。当点击推送时,应用程序无论如何都会打开,如果用户点击“打开”,深度 link 中的相应部分会正确打开,但当然用户不应该确认深度 link 进入推送发送到的同一应用程序。我还在 mydomain/.well-known 目录中获得了我的 Apple App Site Association 文件,并使用 https://branch.io/resources/aasa-validator/ 进行了验证,如下所示(编辑了我的团队 ID 和应用程序名称):

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "MY_TEAM_ID.com.myapp.myapp",
                "paths": [ "*" ],
                "components": [
                   {
                      "/": "/*",
                      "comment": "Matches any URL"
                   }
                ]
            }
        ]
    },
    "webcredentials": {
       "apps": [ "MY_TEAM_ID.com.myapp.myapp" ]
    }
}

我的应用程序link和关联的域也已正确设置且权利完全匹配。为什么我开始收到此确认,我如何在没有确认的情况下直接启动 deep link? (我在 iOS 14.4.1)

这是 OneSignal React Native SDK 的一个错误,已在 v4.0.6 中修复。