-
Notifications
You must be signed in to change notification settings - Fork 149
Build fails with Error code 65 on cordova-ios 4.0.1 #209
Comments
Yeah they made a whole bunch of 'internal' plugins (like Would love to hear everybody's input on this matter. |
Hi, They do support WKWebView but there is stil the issue for ajax call from file:// |
Oh, that's not very useful then.. unless you use inline angular templates I guess. I'll try and make an effort. The hardest part is making it backward compatible with cordova-ios-3. |
Inline template is indeed a nice work around. |
Cordova's WKWebView support is iOS9 only. This plugin supports iOS 8 as well. |
You're best off sticking with cordova-ios-3 for now. cordova-ios has been significantly restructured and a lot of things this plugin needs are now private, so inaccessible. |
For folks using cordova-ios4 and targeting iOS8 and iOS9 who want to use WKWebView today, there is also this plugin. I didn't test it, but it may be worth a shot. |
I personally have also come acrosse the issue of indexedDB not being available with the official plugin.
I would assume that they'll drop support for this one in favor of the new plugin. So I suggest at least pointing out the compatibility issue in the README of your plugin |
Good point, added the warning near the top. |
Downgrading to 3.9.2 helped. No errors while building. Testing with an Ionic 2 app. Great performance boost. Thanks! |
👍 on 3.9.2! Thanks @zb0t |
Yup downgrading to 3.9.2 works 👍 . Looks like 4.0 Version has cordovaLib separates Cordova/CDVLocalStorage.h as private plugin which xcode not including them. |
Exactly (grrr) and a few other issues as well. |
Any update on this? |
Sounds like a breaking change. Would it be possible to only support cordova-ios-4 with any new versions? |
Official plugin works with https://github.com/apache/cordova-plugins/blob/master/wkwebview-engine-localhost/README.md For use with a project with android, platform specific content src is required. The above plugin with set a local host while a crosswalk android build requires the default index.html |
@zb0t with ios8? |
@alexkavon I have tested it with a physical device running 9.2 and simulator. Will try iOS 8 right now and report back |
@alexkavon Works like a charm on 8.4 simulator! |
Why on Earth are you trying to maintain iOS 8 support? The vast majority of iOS are already on iOS 9 (or can update to it) and it's holding this project back. If you literally cannot support Cordova iOS 4 because of a select few users who can't be bothered to update their devices then I think that's a poor decision. I'm sticking with cordova-plugin-wkwebview-engine for now (although the crash recovery on your one looks cool) and have been using it for a few months. It works great and the code is simple. I seriously think you guys should consider ditching iOS 8 support and allowing this plugin to take advantage of Cordova iOS, WKWebView is still cutting edge so why can't this plugin be too? |
Better yet, why not approach the Cordova guys and ask them to move their repo to Github (as it's currently just being mirrored there from a crappy apache git server) to facilitate some sort of merge, as this one's crash recovery sounds handy? |
@zb0t Please also check a real device as AFAIK the simulator is able to load files from the |
@EddyVerbruggen Okay I will test on a physical device |
Any updates on this? |
On a physical iOS 9 device it appears to work just fine. Looking for a device with iOS 8! |
There are certain workarounds implemented in this plugin that cordova's doesn't have, and various critical issues in that one as well that are not present in this one due to the use of the local web server. For example this one is critical for my app and I can't swap to that one: https://issues.apache.org/jira/browse/CB-10237?jql=project%20%3D%20CB%20AND%20labels%20%3D%20wkwebview-known-issues Would be great if there could be a way to update the plugin to work with new cordova versions. |
By the way, another plugin I'm using has figured out how to be compatible with both cordova-ios 3 and 4. It involves reading the See: Unfortunately I don't have time to figure it out myself so I'm leaving it here for someone else. |
For those complaining about the cordova plugin (https://github.com/apache/cordova-plugin-wkwebview-engine) and the issues that it has, those are apple bugs. So, if you are using the cordova plugin, you just have to install this plugin too to add a webserver. After installing both, it should work the same way this plugin works, and if you still see bugs, create new issues on http://issues.cordova.io/ BTW, the crosswalk plugin adds WKWebView support too, not sure if it works with cordova ios 4 though. |
@EddyVerbruggen Thanks for your awesome job, I'm a fan ! Concerning this plugin I think the official WKWebView is still young and needs time. As @jcesarmobile said, using wkwebview-engine-localhost should help but I don't think it's enough at the moment (from my point of view). And yes it's a very good idea to create issues in order to improve it 👍 Why I'm rekindling this thread is just because a lot of projects can't be migrated to the official plugin because of regression issues and are just stuck with So to conclude, that will be awesome if you could fix this issue 😄 |
I gave the official wkwebview plugin a try and it has so many issues (that are resolved in this one) that it is unusable. For example, it is impossible to use From my experience attempting this migration, my conclusion is that there are so many problems with the official plugin that it is definitely not usable for any moderately complex app at this point - and I'm not seeing any signs that they're actively maintaining it. There are barely any people using it from what I can see, because there is a severe lack of discussion regarding most of these issues. That said, however, I think it might be easier to fork the official plugin and add the functionality included in this plugin (specifically the local file system proxy via |
@andreialecu, @klyonrad I recently faced the same issue where the CDVLocalStorage file was failing the build. I didn't want to downgrade to an older version of cordova so I tried the official wekwebview but ended up with troubles using the FILE_URI from Cordova Camera to Cordova File Transfer. What I did was to actually use the cdvfille:// with the temp folder (imageData, comes from the Cordova Camera) This did the trick for me actually. I also agree if we could have the features of this library added to the Official plugin it would be really great as the official does lack of essential features |
Just starting to use this plugin in an existing project. I was already on ios 4.x. Is there any update regarding 4.x support? |
@Branco91 can you please elaborate?
|
Is this a sort of 22 catch. Accessing photos requires webserver. Requires this plugin, the other one does not work. However this one never compiles for cordova ios 4. But other plugins might require that so basically we re stuck on the 3.9.2. level. |
Can you give examples of plugins requiring cordova-ios-4? That's not a requirement I like to impose on projects. |
I have just ran into https://github.com/phonegap/phonegap-plugin-push/releases requires ios 4 above 1.5.3, and is at 1.6.3 already with many essential fixes. |
cordova-plugin-iosrtc (WebRTC for iOS) also requires Cordova iOS 4. |
For my app, the fix that this plugin provides for I also would like to use https://github.com/phonegap/phonegap-plugin-push/, but it requires |
Is there any milestone planed to fix this issue? |
@clauderic We have exactly the same issue. You can fix KeyboardDisplayRequiresUserAction by implementing the same hacky fix that was implemented in the telerik wkwebview : 04e8296 |
Yeah, that's exactly what I ended up doing @dbpieter. Works like a charm. |
@EddyVerbruggen "Can you give examples of plugins requiring cordova-ios-4? That's not a requirement I like to impose on projects."
|
@Michael-Stanford, he said that 8 months ago, in the meantime Xcode 8 was released requiring .entitlement files for push notifications and cordova-ios 4.x.x dealt with them, so it's a requirement now |
@jcesarmobile Thanks for your quick response. The Readme at https://github.com/Telerik-Verified-Plugins/WKWebView says "At the moment this plugin is NOT compatible with Cordova-iOS-4 (so use 3.x), see #209 for details." Does this mean that this WKWebView is no longer supported? |
The need for me to upgrade to cordova-ios 4 to work with XCode 8 has meant that I've unfortunately had to stop using this plugin on all our apps, which is a real shame as it's great. Had to revert to UIWebView for now as I couldn't get Cordova's version to work with the camera etc. |
This is a kinda sad thread :( bye native transitions. Ionic doesn't cease to disappoint the more you dig into it (not flaming any of the contributor guys of this plugin or anything, just bit disappointed from the overall Ionic experience). |
So.... this plugin will be deprecated forever? |
This is a bug with |
So is this plugin abandoned then? Would be nice to read in the README |
@schumannd See the comments at the top of the readme, and the issue it refers to. Since then Ionic created its own plugin, we're just keeping this one for older Cordova versions. |
not posting the full error output but this seems to be the important part
Downgrading to cordova-ios 3.9.2 seems to have helped the issue
The text was updated successfully, but these errors were encountered: