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

安卓机qq浏览器第一次无法唤起 #95

Open
JJ-study opened this issue Oct 19, 2021 · 3 comments
Open

安卓机qq浏览器第一次无法唤起 #95

JJ-study opened this issue Oct 19, 2021 · 3 comments

Comments

@JJ-study
Copy link

在qq浏览器下第一次使用nativeshare.call()会提示ReferenceError: browser is not defined,但是之后再次点击就能正常唤起了

@fa-ge
Copy link
Owner

fa-ge commented Oct 19, 2021

我倒是没复现,是不是页面刚加载时就去调用call方法,可能browser会找不到

@JJ-study
Copy link
Author

我倒是没复现,是不是页面刚加载时就去调用call方法,可能browser会找不到

我是在页面加载完毕后去调用的,但是我发现用demo去调用没有出现此类问题,目前正在排查

@JJ-study
Copy link
Author

我倒是没复现,是不是页面刚加载时就去调用call方法,可能browser会找不到

我是在页面加载完毕后去调用的,但是我发现用demo去调用没有出现此类问题,目前正在排查

这边排查出来是因为qq浏览器要用loadJs异步加载一个资源才能有browser对象,所以顺序实例化对象并执行call()好像是不行的,需要在页面初始化的时候先实例化nativeshare对象然后在需要的时候再去调用call方法

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