简体   繁体   English

链接或Javascript片段从android captive门户浏览器上的链接打开外部应用程序

[英]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? 有没有其他方法可以实现它?

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.

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