我有一个网址,我重写我的Android应用程序。点击从电子邮件到链接一个链接弹出的意图选择器
对话框(完成此使用)。但是点击同一链接(在< 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.