-
Notifications
You must be signed in to change notification settings - Fork 334
Not compatible with cordova-ios 6 #624
Comments
Hi, I have the same error. D. |
I’m having the same problem. Juggling plugin versions for IOS with the WebKit restriction has led me to remove the cordova-plugin-file-transfer but that breaks code push |
Hi, I have the same problem. help plz... |
I downgraded cordova-ios to 5.1.1 and added file transfer back and everything seems to be working now. The eco system is so fragile. |
cordova-ios 6 also removed CDVUserAgentUtil, which this plugin is still referencing. |
|
cordova-ios 6 is a major update those changes are a requirement by Apple. In order to remain compliant in their ecosystem. UIWebView is not allowed anymore. It's important to update this plugin. |
@bobrosoft ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. |
@NickChowHK yes, solved by using:
and adding next to
|
@barryvdh yes with cordova-ios <6 this plugin works. The problem is that the apple ecosystem has changed and you will not be able to publish in the App Store with this plugin soon unless it is updated and guarantees compatibility with cordova-ios 6+. With cordova-plugin-ionic-webview 5+ --> I think that you don't need this lines because only the WK engine is available now
|
@bobrosoft Apple rejected the app even the app is running on WKWebview as the UIWebview Code exists in the cordova-ios@5.1.1 and code-push@1.12 |
@NickChowHK clean everything, delete |
@NickChowHK other solution will be to drop code-push and use latest cordova-ios. |
@NickChowHK You need to be on at least version 1.12.1 of this plugin to fix the WKWebView issue. |
@NickChowHK yes, I double-checked now, I actually have cordova-plugin-code-push version 1.12.5 installed, not 1.12.0. Sorry for misinform. What I don't understand now is from where it gets that 1.12.5 because in node_modules I see 1.12.0 installed definitely and I thought it is getting code from there, but looks as it resolves deps separately. |
Working iOS and Android with defaults platform versions.
With I didn't find any code that I made that small change, here it is: https://github.com/ludufre/cordova-plugin-code-push/commit/159e18cfa9e2aa0c5c6d47ca7b3f0e1d2b1c9f1e (I new on this Github thing, so I don't know how to send this change to this Pull Request / Or @ermik can do this change himself) Originally posted by @ludufre in #513 (comment) |
@ermik is not a valid solution, cordova file transfer plugin is deprecated and must be removed in this plugin. |
@videmort As you can see at the bottom of my comment, I'm just reposting the relevant information which was provided by @ludufre in #513, so that it does not get unnoticed. |
@ermik 👍 |
Hi all, We merged #513 and publish a new version: https://github.com/microsoft/cordova-plugin-code-push/releases/tag/v1.13.0 It should fix supporting |
here is the package: I am no idea how to file the problem.....no error message in the console: codePushSyncStatus 7 Main Thread Checker: UI API called on a background thread: -[WKWebView loadRequest:] [reports] Main Thread Checker: UI API called on a background thread: -[WKWebView loadRequest:] tcp_input [C4.1:3] flags=[R] seq=846688115, ack=0, win=0 state=LAST_ACK rcv_nxt=846688115, snd_una=2978486252 |
Thanks guys for pushing a new version! Edit: Let's continue discussing this issue in #611 |
@alexandergoncharov I tried to archive running cordova build ios --device but fails. |
With cordova-ios 5.1.1 resolved me problem |
You cannot use less than cordova ios 6. Apple will reject any new package still referencing UIWebView. |
But Cordova iOS 6 is problem with code push of appcenter!! |
Most are in the same position. Because of Apple requirements, there really isn't anything to do but either wait for the owners of this plugin to make the updates or do them yourself. In our case, the plugin works as we only use the code-push cli, version 2.1.9. |
Hi all, If you still have issues could you please provide some demo app with reproducing issue and reprosteps? |
Hi @alexandergoncharov Im experiencing the same issue with this version. App updates using codepush results in a white page.
It could seem like this plugin doesnt handle the new Url Scheme of Cordova IOS 6+ app://localhost ? UIWebView This would prevent any new app built with this plugin to be submitted to the App Store, and any app update with this plugin, would get a warning, and not be possible by December. Info from Apple https://developer.apple.com/news/?id=12232019b |
@alexandergoncharov I just tested using the included Sample Apps in this project https://github.com/microsoft/cordova-plugin-code-push/tree/master/samples If you use the new recommended Url Scheme of Cordova iOS 6 This results in a 401, after an app update. The new Url Scheme is recommended to avoid CORS restrictions, hosting your ios app from file://
|
I can confirm it does show warning upon uploading to iTunes. You can't check if the class exists and you can't have it like that either. There must be no "UIWebView" mentioned in code. I personally removed the lines and did not see anything break yet. |
Hi @pitAlex! |
Hi Folks, where are we with this issue? iOS 14 is released that requires WKWebView. Sure seems to me like this would be a #1 priority to get fixed as CodePush for Cordova (on iOS) is completely broken as this point. Any activity on this? |
Hi everyone and deeply sorry for such a delayed response. The team was highly underresourced and couldn't take care of this immediately. |
The new version that fixes the problems with WKWebView for cordova-ios@6 just has been released: v2.0.0. Also, in this version support for UIWebView is dropped as well. |
Description
The cordova-plugin-code-push plugin depends on the deprecated (since 2017) cordova-plugin-file-transfer plugin, which is not compatible with cordova-ios 6 and results in compiler issues.
The ideal solution here would be for cordova-plugin-code-push to handle the downloading, unzipping, and installation of app bundles in native code, that same way that react-native-code-push does.
Reproduction
Install cordova-plugin-code-push in an app built with cordova-ios 6.
There are compiler errors in the cordova-plugin-file-transfer Objective C files.
Additional Information
The text was updated successfully, but these errors were encountered: