深层链接不适用于强制门户 [英] Deep link not working for captive portal

查看:150
本文介绍了深层链接不适用于强制门户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

REPOST
所以我仍然有与authpuppy的俘虏门户/ chrome的问题。 >一旦我连接到wifi,强制门户将弹出,显示一个自定义页面,当用户点击页面上的按钮时,我的应用程序将打开。



无论我做了什么,单击该按钮时,强制门户将显示ERR_UNKNOWN_URL_SCHEME为错误。 Chrome将显示ERR_CONNECTION_REFUSED为错误。



我在firefox或普通网页浏览器中没有问题。
$ b 认证,所有上述作品都像魅力一样,但如果认证(没有互联网),那么它将无法正常工作。



Android如下:

 < intent-filter> 
< category android:name =android.intent.category.DEFAULT/>
< category android:name =android.intent.category.BROWSABLE/>

< data
android:scheme =http
android:host =www.mydomain.com
android:pathPattern =/ a / b / c //>

< data
android:scheme =myapp
android:host =www.mydomain.com
android:pathPattern =/ a / b / c //>
< / intent-filter>



和html一样:

 < a href =intent://www.mydomain.com/a/b/c/#Intent; scheme = myapp; package = com.mypackage; S.browser_fallback_url = http:/ /play.google.com/store/apps/details?id=blablabla&hl=en;end;\";></a> 

有人可以帮我吗?

解决方案

对于Chrome / WebView上的Android,您应该使用Google Chrome文档中的Intent $ b https://developer.chrome.com/multidevice/android/intents



示例
intent:// @ Intent; scheme = abcd://; package = com.abcd.yourapp; S.browser_fallback_url = http://m.abcd.com


REPOST So im still having problem with android captive portal/chrome with authpuppy.

Once im connected to a wifi, the captive portal will will pop up, showing a custom page and when user clicks on a button on the page, my app will open.

no matter what i did, on clicking the button, the captive portal will show ERR_UNKNOWN_URL_SCHEME as error. Chrome will show ERR_CONNECTION_REFUSED as error.

I had no problem with firefox or normal web browser.

If successfully authenticate, all the above works like charm, but if pending authentication (no internet) then it will not work.

Android as follows:

<intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data
                android:scheme="http"
                android:host="www.mydomain.com"
                android:pathPattern="/a/b/c/" />

            <data
                android:scheme="myapp"
                android:host="www.mydomain.com"
                android:pathPattern="/a/b/c/" />
        </intent-filter>

And html as follows:

<a href="intent://www.mydomain.com/a/b/c/#Intent;scheme=myapp;package=com.mypackage;S.browser_fallback_url=http://play.google.com/store/apps/details?id=blablabla&hl=en;end;";></a>

Can someone pls help me out?

解决方案

For Android on Chrome / WebView, you should use an Intent per Google Chrome Documentation

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

Example intent://@Intent;scheme=abcd://;package=com.abcd.yourapp;S.browser_fallback_url=http://m.abcd.com

这篇关于深层链接不适用于强制门户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆