haxeextension / extension-webview Goto Github PK
View Code? Open in Web Editor NEWWebView Extension for OpenFL
License: Other
WebView Extension for OpenFL
License: Other
Hi,
First of all! SO GREAT LIB! working out-of-the-box... just amazing!
I came across in only one issue, if I close the WebView (from the X button on top left corner) or trying to click on back button(of the phone) in root url so I should to move back to the phone's home screen, the screen changing to black and don't respond unless I kill the process (long tap on home button..) Tested on Android 4.4.2
Thanks a lot!
Michael
Hi,
since January the maven repository is blocking any non-https request. So now compilation for android is failing during the gradle step.
Only one change is needed to fix this, in the build.gradle of the webview dependency. I made a PR.
Hi, thank you for amazing lib and sorry because I'm not talking about any issue.
I'm building a 3d app using BabylonHx library, it will be VR game. Unfortunately, there are no device-orientation-event which have alpha beta gamma output from OpenFl API so I 'm planning to do a trick, using webview to access device orientation event and then push back values to OpenFL app (almost modern mobile browser support that event). But this library just have only 2 options (popup and window) so I wonder how to open webview in backgrond, it will solve my problem.
So can you point me how to manual config webview to let it behind everything, I don't know Java programming.
Sorry for my poor English.
If is possible tell me how
The Android webview does not support local storage.
I managed to enable it locally by adding:
webSettings.setDomStorageEnabled(true);
to WebViewActivity.java
I have some code in the onURLChanging event - to retrieve some thing from the web response based on the landing page (i.e. Twitter Auth) - but attempts to call WebView.close(); don't work.
Looked through code - and can see only iOS has this function available. Can we make it available to Android?
Is it the same code to do a close?
You have copied my codes from repository and changed some namespace and not giving any credits.
https://github.com/openfl/extension-webview/blob/master/project/ios/WebViewEx.mm
https://github.com/SuatEyrice/NMEWebview/blob/master/extensions/WebView/project/iphone/NMEWebView.mm
How can i change user agent on iOS target.
Opened on an iPhone 6s but no content was displayed.
Hi,
I'm unable to compile this extension with the latest versions of OpenFL and Lime, while not using Legacy mode.
Error:
/usr/lib/haxe/lib/extension-webview/1,2,1/extension/webview/WebView.hx:61: characters 11-46 : Class<lime.utils.JNI> has no field createStaticMethod
I would help if I knew a bit more about extensions and Android. I guessing the function has moved or changed.
Any help would be great, Thanks!!
haxelib install extension-webview returns:
No such Project : extention-webview
While openfl-webview gives
Error: OPENFL-WEBVIEW IS DEPRECATED! Now you should use 'extension-webview'
when I try to build the project.
The onURLChanging function triggers when loading the initial page but any subsequent changes to the URL do not trigger that function. I tried adding the listener (with a delay) after the initial page loads but then it never gets called.
I saw this post and wondered if it might be a factor: "In September 2019, Apple has released a new, separate version of iOS specifically for the iPad: iPadOS. With iPadOS there comes a change in how Safari manages webpages and identifies them."
Hello!
I'm not sure if this is the right place to ask this, but is there any chance on catching mouse clicks and such?
Hello,I use the library on IOS platform,with popu mode.But I can't find on buton to close it.
This doesn't appear to fire on Android - the Open/Close events do - something wierd is going on.
I set the URL to https://www.google.co.nz - which loads fine in the window. Any links clicked inside, (which navigate around), don't appear to fire that event.
Any ideas?
Hi,
i have exception on android when trying to open url
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gomadkids.turmali/extensions.webview.WebViewActivity}: java.lang.NullPointerException
unfortunately i can't build extension with -debug flag to provide more information.
Tried different url's (on iOs working perfectly)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.