clear toga webview cache for android #3485
-
Hi, how to clear toga webview cache for android, I have checked the toga doc, but find no topic about this. |
Beta Was this translation helpful? Give feedback.
Answered by
freakboy3742
May 23, 2025
Replies: 1 comment 3 replies
-
There is no public Toga API for this at present. It would make sense to add an API for this, but we'd need to investigate how (and even if) it could be done. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the method exists on the native API, it can be invoked. In this instance, you should be able to call
mywebview._impl.native.clearCache(True)
. That won't be cross platform, as it's touching a native API; but you can put anif toga.current_platform == 'android'
check around the call.If we can find an analogous cache flush mechanism on other platforms, we could wrap this up as a cross-platform API.