Releases: defold/extension-webview
Releases · defold/extension-webview
WebView 1.5.0
NEW: Added support for adding custom request headers when navigating within the webview:
local options = {
headers = {
["Accept-Origin"] = "*",
["User-Agent"] = "Foobar 1.0",
}
}
webview.open(self.webview_id, "https://www.google.com", options)
NEW: Added support for making the webview background transparent:
local id = webview.create(...)
-- two different ways to set the background color to transparent
webview.open(id, url, { transparent = true })
webview.set_transparent(id, true)
Cleanup Android implementation
- Remove CustomWebView class, unnecessary anymore?
- softInputMode = Adjust Nothing to avoid layout adjusted when keyboard shown
- systemUiVisibility deprecated on Api Level >= 30
Thanks @baochungit
Added support for arm64-macos
Now extension can be built for arm64-macos
Smaller mutex scope + use new SDK android methods (Defold 1.2.188)
- Use smaller scope for the callback's mutex to avoid possible ANRs/Crashes
- Use new Defold SDK API (1.2.188) for attaching VM thread and loading java class
WebView 1.4.5
FIX: Web content with modals (date picker) didn't show on iOS. Thanks to @dapetcu21 !
WebView 1.4.4
FIX: Escape string before passing it to eval on Android
WebView 1.4.3
FIX: The game view would lose focus if the webview is destroyed while clicking on macOS
WebView 1.4.2
FIX: Crash on extension shut down
FIX: Coordinate system is inverted on macOS compared to iOS
Fix for window frame calculation on macOS
1.4.1 Fix window frame calculation on macOS (#22)
Added support for macOS
Merge pull request #20 from thetrung/master add support for macOS