简体   繁体   English

通过Chrome浏览器中的网址启动Android应用

[英]Launching Android App from through url from Chrome browser

I wish to open android app on click of the url . 我希望点击url打开android应用。

The idea is the link will open in browser and look for the package and launch the application or redirect to app store. 想法是,该链接将在浏览器中打开,并寻找软件包并启动应用程序或重定向到应用程序商店。

From the Chrome documentation , i can see that we cannot launch app directly without user interaction. 从Chrome文档中,我可以看到,如果没有用户交互,我们将无法直接启动应用程序。

Is there any way we can achieve this functionality. 有什么方法可以实现此功能。

I took implementation from this 我从这里开始实施

https://github.com/danielgindi/app-redirect https://github.com/danielgindi/app-redirect

This works but from the diclaimer mentioned copying the link in chrome browser does not launch the app. 这是可行的,但是从提到的免责声明中,在chrome浏览器中复制链接不会启动该应用。

https://developer.chrome.com/multidevice/android/intents https://developer.chrome.com/multidevice/android/intents

And Chrome doesn't launch an external app for a given Intent URI in the following cases. 在以下情况下,Chrome不会针对给定的Intent URI启动外部应用。

When the Intent URI is redirected from a typed in URL. 从输入的URL重定向Intent URI时。 When the Intent URI is initiated without user gesture 在没有用户手势的情况下启动Intent URI时

Do you know about Firebase Dynamic Links? 您知道Firebase动态链接吗? See here if this is what you are searching for: https://firebase.google.com/docs/dynamic-links/ 查看此处是否是您要搜索的内容: https : //firebase.google.com/docs/dynamic-links/

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

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