Skip to content
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

vConsole注入问题 #13

Open
hzmming opened this issue Jun 24, 2022 · 3 comments
Open

vConsole注入问题 #13

hzmming opened this issue Jun 24, 2022 · 3 comments

Comments

@hzmming
Copy link

hzmming commented Jun 24, 2022

  1. 没有注入成功
    用两款app做了测试,“美图秀秀”和“皮皮虾”,皮皮虾成功,但美图秀秀失败,不知道为什么~~(真机调试二者都行)

  2. 注入时机
    皮皮虾注入成功,但vConsole中没有历史日志。我想应该是注入时机较后,感觉可以调整下,在第一时间注入,这样也能看到整个页面的完整日志

@WankkoRee
Copy link
Owner

WankkoRee commented Jun 27, 2022

收到。

美图秀秀可能需要针对性适配,我会抽空查看具体情况。

注入时机的问题,你可以尝试在规则中将onPageFinished方法用onPageStarted方法或者其他事件替代,这样子理论上注入时机会被一定程度上提前,但可能由于过早注入,导致实际上没注入成功。激进还是稳定,这取决于你。

@hzmming
Copy link
Author

hzmming commented Jun 28, 2022

  1. 我用哔哩哔哩试了下,vconsole也没有注入成功。大佬也可以关注下(同样可以真机调试)

  2. 注入时机调整成 onPageStarted,皮皮虾可以。成功看到了历史log。
    话说,注入时机的输入框,可以优化成下拉选择框吗?感觉生命周期应该就固定那几个?(不懂客户端)

@WankkoRee
Copy link
Owner

哔哩哔哩我测试过的,需要自定义规则才行,有空我会把规则传上去。

规则内容采用文本框而不是下拉菜单,是因为各个app可能会有一些方法名的混淆,不一定就是原名。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants