[英]How debug Universal links
I use the cordova plugin "ionic-plugin-deeplinks" (to my knowledge also works with a plain cordova app).我使用cordova插件“ionic-plugin-deeplinks”(据我所知也适用于普通的cordova应用程序)。
On Android, links when clicked let users choice between chrome and my application.在 Android 上,单击链接时用户可以在 chrome 和我的应用程序之间进行选择。 => I suppose that app links works => As I'm able to access window.IonicDeeplink and redirect the user to the right page
=> 我认为应用程序链接有效 => 因为我可以访问 window.IonicDeeplink 并将用户重定向到正确的页面
I'm not able to have the same behavior on iOS, when I click a link I always get the app open in Safari.我无法在 iOS 上有相同的行为,当我单击链接时,我总是在 Safari 中打开该应用程序。
How can I find clue on issues ?我怎样才能找到问题的线索?
More context:更多背景:
apple-app-site-association
is got with a HTTP 200 (over https only), it's located in /.well-known/apple-app-site-association
: apple-app-site-association
带有 HTTP 200(仅通过 https),它位于/.well-known/apple-app-site-association
:
apple-app-site-association
apple-app-site-association
上获得 HTTP 200*.entitlements
file in my project.*.entitlements
文件。 Should I have one with cordova?applinks:mydomain.com
and the switch is ON.applinks:mydomain.com
并且开关已打开。 But I never uploaded any thing from my local dev environment to apple services. My current interrogations are highlighted but any explanations on any lack of understanding will be more than welcome!!!我目前的审讯被突出显示,但任何对任何缺乏理解的解释都将非常受欢迎!!!
Until then I started a verification for testFlight looking for more info.在那之前,我开始对 testFlight 进行验证以寻找更多信息。
while installing the app with Xcode I got no logs referring to swcd in xCode
在使用 Xcode 安装应用程序时,我没有在 xCode 中获取任何关于 swcd 的日志
I implemented Universal Links manually, but situation was similar.我手动实现了通用链接,但情况类似。 Particularly I mentioned empty swcd process log while installing the app, and it turned out that most likely iOS didn't even try to download apple-app-site-association file, like if responsible process wasn't run.
特别是我在安装应用程序时提到了空的swcd进程日志,结果很可能是 iOS 甚至没有尝试下载apple-app-site-association文件,就像没有运行负责的进程一样。 In my case device restart helped and deep-linking began to work.
在我的情况下,设备重启有所帮助,深度链接开始起作用。
Thus I think restarting device is one another step in troubleshooting when you are sure about all your setup.因此,我认为当您确定所有设置时,重新启动设备是故障排除的又一步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.