[英]Link or a Javascript snippet Open external app from a link on the android captive portal browser
I need to open android application from captive portal browser but I am not able to achieve it with intent://scan/#Intent
(intent scan), it results in 我需要从强制门户网站浏览器打开android应用程序,但我无法通过intent://scan/#Intent
实现它intent://scan/#Intent
(意图扫描),它导致
net:ERR_UNKNOWN_URL_SCHEME. 网:ERR_UNKNOWN_URL_SCHEME。
is there anyother way to achievve it? 有没有其他方法可以实现它?
Use mobile deep links for this. 使用移动深层链接 。 If the App you are using implements deep links, this is what you normally use. 如果您使用的应用程序实现深层链接,这是您通常使用的。
appname://path/to/action
I also have the same requirement with your question. 我对你的问题也有同样的要求。 But it is likely that we shouldn't launch a Android app from browser. 但我们可能不应该从浏览器启动Android应用程序。 The reason is the intent filters may be difference between different Android versions. 原因是意图过滤器可能是不同Android版本之间的差异。 And it looks like that Android is trying to restrict it. 看起来Android正试图限制它。 On Android 6.0 (API level 23) and higher allow an app to designate itself as the default handler of a given type of link. 在Android 6.0(API级别23)及更高版本上,允许应用程序将自己指定为给定类型链接的默认处理程序。 If the user doesn't want the app to be the default handler, they can override this behavior from their device's system settings( https://developer.android.com/training/app-links/#app-links-vs-deep-links ) 如果用户不希望应用程序成为默认处理程序,则他们可以从其设备的系统设置中覆盖此行为( https://developer.android.com/training/app-links/#app-links-vs-deep - 链接 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.