简体   繁体   English

在 Android 设备上从浏览器打开应用程序时出现问题

[英]Issue opening an app from browser on Android devices

I'm trying to let people open mobile apps from my website and I found url scheme of some app for it like fb:// , twitter:// , .vv我试图让人们从我的网站打开移动应用程序,我找到了一些应用程序的 url 方案,例如 fb:// 、 twitter:// 、 .vv

They're all work fine ( with window.location.replace() or document.location.href ...) on IOS devices only;仅在 IOS 设备上它们都可以正常工作(使用 window.location.replace() 或 document.location.href ...); when on Android devices, nothing happened.在 Android 设备上,什么都没有发生。 I knew that Android app has another way to do it, not those same url scheme like for IOS, so anyone who has achieved it on Android for any app please help me !我知道 Android 应用程序有另一种方法可以做到这一点,而不是像 IOS 那样的相同 url 方案,所以任何在 Android 上为任何应用程序实现它的人请帮助我! I couldn't find any official url of an Android app to be opened from web browser yet.我还找不到要从网络浏览器打开的 Android 应用程序的任何官方网址。

On Android you can do it by creating your own url scheme and using Deep Links .在 Android 上,您可以通过创建自己的 url 方案并使用Deep Links来实现。

This is the official documentation explaining how to create and use them: https://developer.android.com/training/app-links/deep-linking这是解释如何创建和使用它们的官方文档: https ://developer.android.com/training/app-links/deep-linking

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

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