defold / extension-webview

Defold extension for creating and controlling webviews to show html pages or evaluate javascript.
https://defold.github.io/extension-webview/
MIT License
14 stars 10 forks source link

add support macOS for webview #19

Closed thetrung closed 4 years ago

thetrung commented 4 years ago

For now, extension-webview only support iOS & Android platform, which may be hard to develop and debug from local machine. So I added support for it to work on macOS with NS* API on macOS and WKWebView ( WebKit ) (as it was on iOS).

changes :

britzl commented 4 years ago

@thetrung What is the purpose of AllowSiteAction btw? If navigation happens before a callback is completed the decision handler was cancelled, but this option prevents this from happening or something?

britzl commented 4 years ago

@thetrung Why was the PR closed?

britzl commented 4 years ago

Ah: https://github.com/defold/extension-webview/pull/20