Android的URL重写不能在重定向工作 [英] Android url override doesn't work on redirect

查看:237
本文介绍了Android的URL重写不能在重定向工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网址,我重写我的Andr​​oid应用程序。点击从电子邮件到链接一个链接弹出的意图选择器对话框(完成此使用)。但是点击同一链接(在< A> 标记)从内部浏览器(Android上4)我重定向到URL,并且不提供意图选择器

I have a url that I am overriding in my Android App. Clicking a link from an email to that link pops up the Intent Chooser dialog ("Complete this using"). However clicking the same link (in an <a> tag) from within Chrome (on Android 4) redirects me to that url, and doesn't offer the Intent Chooser.

如果我替换&LT链接; A&GT; 有一个链接到谷歌Play商店(标记https://play.google .COM ),然后点击链接再弹出的意图选配。

If I replace the link in the <a> tag with a link to the Google Play Store (https://play.google.com) then clicking the link pops up the Intent Chooser again.

是不是有什么特别的与谷歌Play商店和浏览器,还是我做错了什么配置我的网址?有什么我可以在HTML做,以使这项工作?

Is there something special with the Google Play Store and Chrome, or have I done something wrong configuring my url? Is there something I can do in html to make this work?

这里的&LT;意向滤光器&gt;

<activity
    android:label="@string/app_name"
    android:name="..."
    >
    <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
    </intent-filter>
    <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="https"
              android:host="www.example.com"
            />
        <data android:scheme="http"
              android:host="www.example.com"
            />
    </intent-filter>
</activity>

(重定向到URL也不会弹出意图选择器对话框,但我想我的情况上面更尖锐的前presses我的问题。)

(Redirecting to the url also does not pop up the Intent Chooser dialog, but I figured my situation above more pointedly expresses my issue.)

另外,我相当肯定这是所有工作,而我的域名下跌。当我的域名来了上网本停止工作。这可能是我的凭空想象,因为我不是100%专注于这个问题的时候。

Also of note, I am fairly certain this was all working while my domain was down. As soon as my domain came online this stopped working. This could be a figment of my imagination as I wasn't 100% focused on this problem at the time.

难道Chrome浏览器会将谷歌Play商店的网址特殊,否则等待非200从URL打开之前,响应意图选择器

Is it possible that Chrome treats Google Play Store urls special, otherwise it waits for a non-200 response from a url before opening the Intent Chooser?

推荐答案

很可能是一个真正的/已知的bug。

Could very well be a real/known bug.

一个我建议(但现在已经关闭,因此似乎将是固定的版本,你想带): 的https://$c$c.google.com/p /铬/问题/详细信息?ID = 113140

The one I suggested (but which is now closed so it seems would be fixed for version you're trying with): https://code.google.com/p/chromium/issues/detail?id=113140

找到/打开的@xbakesk: 的https://$c$c.google.com/p /铬/问题/详细信息?ID = 170925 的https://$c$c.google.com/p /铬/问题/详细信息?ID = 230104

Found/opened by @xbakesk: https://code.google.com/p/chromium/issues/detail?id=170925 https://code.google.com/p/chromium/issues/detail?id=230104

如果发现其他错误,只是让我知道在评论中,我将增加,或直接编辑我的答案。如果错误得到封闭,我还会尝试更新的答案。

If any other bugs found, just let me know in the comments and I will add, or edit my answer directly. If bugs get closed, I'll also try to update the answer.

这篇关于Android的URL重写不能在重定向工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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