gowithfloat / flwebview Goto Github PK
View Code? Open in Web Editor NEWWKWebView with UIWebView fallback for iOS.
Home Page: http://gowithfloat.com/2014/12/one-webview-to-rule-them-all/
License: MIT License
WKWebView with UIWebView fallback for iOS.
Home Page: http://gowithfloat.com/2014/12/one-webview-to-rule-them-all/
License: MIT License
I added the following line into my project's podfile,
pod 'FLWebView'
but I failed to install it with the error message "[!] Unable to find a specification for FLWebView
"
would you handle this cocoapods install issue, please?
could you pls make it pod
iOS 8 has a bug that prevents loading from file, but apparently there is a workaround. Two sources:
http://stackoverflow.com/questions/24882834/wkwebview-not-working-in-ios-8-beta-4/28676439#28676439 (scroll down a little, I guess the code is swift)
https://github.com/shazron/WKWebViewFIleUrlTest (workaround works, according to my tests on iOS 8.4 from /tmp and also from /Library, which probably is better, but the code is too complex for me)
Can you add this workaround to FLWebView (objective-C preferred)? My level isn't good enough to know what I'm doing.
Thanks!
I saw issue #2. Why would you close this issue if you intent to implement it in the future? It's still outstanding...
Please create a pod for this, it's very primitive to be committing someone else code to your repository. It's not something someone else can do, you must submit it to own the repository.
Using xcode 7.0, this project works fine in the simulator for ios 8.1 (iPad 2), but after the splash screen it gets stuck with a white screen for the simulator for ios 9.0 (iPad 2), and for a physical iPad Mini 2 running ios 9.0.1. Any idea where to start looking? Many thanks, Ian.
If somebody tries to launch this app out of the box, they'll see a blank web page and this App Transport Security error in the console:
2017-03-02 03:09:44.183 FLWebView[61199:3566130] failed to load http://www.floatlearning.com/ with error The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
The easiest fix is to simply change the URL that's loaded to be https
.
For example, in your ViewController.m file
// Just to show *something* on load, we go to our favorite site.
[[self webView] loadRequestFromString:@"https://gowithfloat.com/"];
(the original website of www.floatlearning.com doesn't have a valid & matching certificate for the domain)
I hope this info helps you!
It crash in it when cordova relative class call webview.scalesPageToFit;
it seems alway call it self, and over the stack.
and I comment the method in UIWebView (FLWebView), It work.
I would test it for any other side effect
The example project seems to include the WebKit.framework as "required".
For an iOS 7 device will this work?
According to these articles this extra step needs to be done:
http://stackoverflow.com/questions/25897123/including-webkit-framework-for-ios8-fails-validation
http://stackoverflow.com/questions/25341238/xcode-6-ios-8-sdk-but-deploy-on-ios-7-uiwebkit-wkwebkit
Which is correct for making your code compatible with an iOS 7 device and later with no issues.
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.