New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help wanted: 如何自定义BrowserMatcher处理流程 #30
Comments
我尝试自定义了一个CustomBrowserMatcher,在init之后注册,并且优先级高于BrowserMatcher的0
现在的情况确实先被这个CustomBrowserMatcher捕获,但是产生了两个新疑问:
|
|
问题1的出现原因参考这块代码 |
谢谢
|
你不需要操作bundle,什么也不需要做,在生成intent之后,会自动把bundle传入intent内,在目标页面直接获取即可。参见这里。 |
收到,多谢指导。 |
先贴上我自定义的CustomBrowserMatcher
我再App中做了注册
以上代码再1.3.x中是正常工作的,最近升级到1.4.0,发现对于http的跳转不起作用了,debug发现在CustomBrowserMatcher.generate中target是null |
1.3.3同样存在问题 |
|
非常感谢,贴上正常工作后的代码
|
目前发现当path是url路径(startwith http or https)的时候,会先尝试匹配有没有对于的schema,没有的话,则跳转打开系统默认浏览器。
请教如何自定义无法匹配的path的时候,自己处理跳转逻辑,我希望用我app内置的webview来打开这个页面,而不是使用系统内置浏览器。
谢谢
The text was updated successfully, but these errors were encountered: