-
Notifications
You must be signed in to change notification settings - Fork 335
iOS: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 1.) #424
Comments
@alexandergoncharov, you seem to be the first responder from MS :) any inputs on this one? I have seen the existing issue closed pending on feedback from the OP but I am experiencing it right now and can assist with fixing it. |
Hi @eskhool , Unfortunately I can't check it right now but you request in queue and I'll check it a little bit later. Sorry for this long delay. Thanks, |
Hi @alexandergoncharov, glad to know you're alive and kicking =) |
Hi @eskhool , I tried to reproduce this issue but my attempts were unsuccessful. I used just default approach with updating app with Thanks, |
@alexandergoncharov, are you using WKWebview? |
@alexandergoncharov, can you confirm this? I used the same default approach with codepush.sync() only and haven't tried anything fancy yet |
@eskhool Sorry for delay. Yeah, it was my wrong. I reproduced issue. |
@alexandergoncharov, any progress on whats up with the wkwebview engine? am surprised that this isn't a more visible issue, thought the UIwebview engine was declared dead by apple and wkwebview is way more performant and standards compliant |
Yeah, I think I found the reason of issue and found approximate fix. Investigating to implement it with good approach. I'll keep you up to date. |
great, keep us posted |
@alexandergoncharov, any updates on this? |
@alexandergoncharov, not to be pushy :) but is there an ETA so we can plan/set expectations accordingly? |
Hi @eskhool, Yeah, I'm still working on it. I think that I'll finish on this week. Also, quick question: Are you using Ionic or PhoneGap or clear Cordova? Thanks, |
Plain Cordova...if you have a workaround ready, love to hear it, as well to understand the issue also ...will take a final call depending on what it is and if you are actually able to find time to turn it around by the end of week :-) |
@alexandergoncharov, also if you can release by the weekend, we can time it with an upgrade for our users (minimal disruption etc) |
Hi @eskhool , For hot workaround you should do next steps:
This changes should fix your issue. Could you please check it and let me know if it was helpful for you or you still have this issue? About issue: There is some path issue with WKWebView and CodePush. We had CDVWKWebViewEngine+CodePush.m file for fixing it but there was issue with Ionic features as Ionic has modified WKWebView. At now I'm working on making our plugin work with Ionic and clear Cordova + WKWebView. Thanks, |
Hi @alexandergoncharov, from your identification of your issue it seems pretty obvious that WKWebView has been forked by Ionic and Codepush presently only support Ionic's version. Sounds like either the plugin needs to exist in 2 different version for Ionic/Cordova or it needs to have a conditional code path for the 2 different installed plugins (Ionic/Cordova versions) Of course, ideally Ionic should have had their changes incorporated into upstream but don't know the facts/politics of that decision. |
Hi @eskhool Could you pleas clarify have you tested workaround? Is it work for you? |
@alexandergoncharov, this branch seems to work. Haven't done testing if the update is valid etc but the error is gone. Since installing from the branch is not convenient, can you please close this only after the plugin has been released with a cordova compatible version? |
@eskhool , Sorry for delay. Yeah, sure. I'll close it only after getting fix in release. And also I will be keep you in up to date. |
I'm hitting this with Cordova+wkwebview (not ionic) and codepush |
Hi @aiba , Yeah, it is known issue. After fixing issue with Ionic we'll fix this issue. |
@aiba, unfortunately at present the cordova version is not working in favor of the ionic working till an ionic compatible fix is found. till then the only solution I can recommend is to use the branch @alexandergoncharov has noted above. It seems to work for me. Its not ideal, I know but C'est la vie. |
Thanks for the info! I'm now using the workaround branch from above, but it's obviously not ideal to be stuck on the branch and not benefit from the latest updates. @alexandergoncharov at one point above in this thread, you mentioned that you had a draft fix that took a conditional path based on whether we were on ionic or not. If it's not too much trouble, I think it would be awesome to get that fix merged in to master so that we're not blocked on ionic making changes (which could be a while). |
A slight workflow note to other peole who want to use the workaround git branch from above: if you clone the repo locally and reference it using Cordova supports adding git branches directly, so it should be possible to do: $ cordova plugin add 'https://github.com/Microsoft/cordova-plugin-code-push#Goncharov/Revert_removing_CDVWKWebView+CodePush.m' |
@aiba , Sorry for long delay. Missed it. Yeah, You are right but for now we have similar issue with Ionic's WKWebView. At first we should fix that issue and then I'll continue work on this. Thanks for good suggestion with adding plugin directly from github repo! |
@alexandergoncharov thanks for the update. Do you have a link to that ionic wkwebview issue so we can stay updated on its progress? |
Hi @aiba , Ionic WebView issue was resolved. Working on this issue. For now I faced issue with LiveReload of Ionic WebView after adding logic for fixing this issue. So, My work in progress. |
@alexandergoncharov Without putting more pressure on you, but is there any news about the fix and when it probably will be official released? I'm currently using the fix branch you provided but would like to get back to the "normal" version as soon as possible. |
Hi @npostulart , Sorry for delay. I implemented draft fix and it works. At now I'm working on refactoring. |
Hi all, I prepared PR fir this issue: #483 Thanks, |
For testing this pr you can add cordova-plugin-code-push to your app with this command: |
@alexandergoncharov thank you for this change!!! I tested it with my app and it works great. I'm excited to get back on the main line codepush branch. The only issue I encountered during testing was noticing a stacktrace in the logs with message "UI API called on a background thread". But I think this has always been happening for me with codepush, and it seems to be more of a warning than an error that causes any problems.
|
Hi @aiba, Yeah, you are right. This issue was all the time. It also should be fixed but I think this is separate issue and we should investigate it separately. |
Hi all, #483 PR already in Master and in new Release: https://github.com/Microsoft/cordova-plugin-code-push/releases/tag/v1.11.16 So, I'm going to close this issue for now. But please feel free to reopen it if you have any questions or face this issue again. Also, I'll continue keep https://github.com/Microsoft/cordova-plugin-code-push/tree/Goncharov/Revert_removing_CDVWKWebView+CodePush.m branch for users who can't update plugin soon. Thanks, |
@alexandergoncharov thank you so much for your work on this. My team is using 1.11.16 and seems to be working great. Very happy to be back on the latest release :-). |
@aiba, I was glad to help! Thanks for using CodePush :) |
Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):
Description
Using version 1.11.11 of the plugin, if we do: codePush.sync() or basically anything that executes restartApplication()
Failed to load resource: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 1.)
Happens in the latest ios under WKWebview engine.
The readme states
Is this still true at 1.11.11 or just that the documentation is lagging behind?
In any case, I can also verify that this issue persists with the following versions:
Running on an actual device iPhone 5s
iOS 10.3.3
cordova - 8.0.0 (same with 7.1.0)
cordova-plugin-wkwebview-engine 1.1.2
debug build
not tried on simulator yet
The text was updated successfully, but these errors were encountered: