简体   繁体   English

ionic3 中的深层链接:不要使用 Gmail 链接启动 ionic 应用程序

[英]Deeplink in ionic3 : don't launch the ionic app with Gmail Link

Codepen Url link with in the href tag click link work is going on.带有 href 标签点击链接的 Codepen Url 链接正在进行中。

For Example : <a href="com.abc.com://abc.com/testPage">Click</a>

But same link is open in chrome it auto adds https:// protocol which gives this site can't be reached error.但是相同的链接在 chrome 中打开,它会自动添加https://协议,这会导致无法访问此站点的错误。

Please give me any suggestion.请给我任何建议。

The https://developer.android.com/training/app-links/ standard is designed to solve this issue, but it's only supported on newer versions of Android. https://developer.android.com/training/app-links/标准旨在解决此问题,但仅在较新版本的 Android 上支持。

Instead, what you need is hosted deep links.相反,您需要的是托管深层链接。 With this set up, your https:// URLs lead to webpages that redirect to your custom URI scheme, which opens the app and deep links your user.通过此设置,您的 https:// URL 会指向重定向到您的自定义 URI 方案的网页,这会打开应用程序并深层链接您的用户。 You can technically build it yourself, but most developers don't.从技术上讲,您可以自己构建它,但大多数开发人员不会。 Services like https://branch.io/ and Firebase Dynamic Links make the process much easier.https://branch.io/和 Firebase 动态链接这样的服务使这个过程变得更加容易。

Here's a breakdown of the various deep linking options for Ionic: https://blog.branch.io/how-to-deep-link-in-cordova-phonegap-and-ionic/以下是 Ionic 的各种深度链接选项的细分: https : //blog.branch.io/how-to-deep-link-in-cordova-phonegap-and-ionic/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM