community
community copied to clipboard
Webview
Is your feature request related to a problem? Please describe. I don't have any simple way to display remote HTML.
Describe the solution you'd like I hope to provide a webview component that can display local and remote HTML. It would be better if it can provide basic JS interaction functions.
Describe alternatives you've considered
- Advantages: very powerful, supports self-compiled chrome kernel, supports JS interaction
- Disadvantages: not friendly to mobile terminals. Currently, the open source library cefpython has stopped maintenance. The investment cost is high.
- Advantages: many functions and easy to use.
- Disadvantages: does not support iOS (only recently supported Android). A new window pops up to display webview, which cannot be integrated with kivy components.
- mobile webview
- Advantages: no obvious advantages are seen, which is a bad strategy.
- Disadvantages: The biggest problem is that the native webview is very high-level and cannot be integrated with kivy components, and the performance is not good. You need to write Java/Kotlin code to support Android, and write OC/Swift code to support iOS.
Additional context I believe that every application has many scenarios that require webview support, but kivy does not provide a webview component. I don't know whether it is impossible to implement due to technical reasons or the Kivy product team thinks it is unnecessary to provide webview. But I believe that Kivy users want to see and use this component as soon as possible.
### Tasks
This might help you a bit, Android native webview https://github.com/Android-for-Python/Webview-Example . It is a full screen widget within the Kivy app (a ModalView).
As with most things open source, the person who wants it the most is the person who contributes it. I think in your post above you nailed the issue exactly, due to multi platform support The investment cost is high. Somebody has to really want it.
But we need kivy's own dedicated webview.
But we need kivy's own dedicated webview.
আমার মনে হয় না যে এইটা সহজ বা kivy team এইটা সমাধানে আগ্রাধিকার দিবে