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

uniapp开发的APP在鸿蒙系统里无法进行原生与webview进行交互,原本uniapp中的plus方法evalJs无法在鸿蒙next里不支持,请问有什么方案能实现吗? #5124

Open
TopTime1 opened this issue Aug 30, 2024 · 5 comments
Assignees

Comments

@TopTime1
Copy link

uniapp开发的APP在鸿蒙系统里无法进行原生与webview进行交互,原本uniapp中的plus方法evalJs无法在鸿蒙next里不支持,请问有什么方案能实现吗?

@Wangyaqi
Copy link
Contributor

可以使用WebviewContext的evalJs,我们在鸿蒙上实现了uni-app-x的规范 https://doc.dcloud.net.cn/uni-app-x/api/create-webview-context.html

@TopTime1
Copy link
Author

我用的是uni-app 不是x

@Wangyaqi
Copy link
Contributor

Wangyaqi commented Sep 7, 2024

我的意思是uni-app非uni-app-x的鸿蒙端也是按照这个规范实现的

@China-Robin
Copy link

我的意思是uni-app非uni-app-x的鸿蒙端也是按照这个规范实现的

我在uniapp nvue页面中使用webviewcontext进行evalJS通信,但是是失败的,感觉webview在鸿蒙上依然有许多问题

@China-Robin
Copy link

另外要执行loadURL在鸿蒙有什么方案吗?

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

3 participants