crash: wkwebview and this plugin not happy
See original GitHub issueI am using version 0.7.2
with ionic’s wkwebview plugin.
On start the apps crash with the following information:
2017-08-09 12:32:05.461888+0200 Cochrane+[734:238485] Apache Cordova native platform version 4.4.0 is starting.
2017-08-09 12:32:05.461976+0200 Cochrane+[734:238485] Multi-tasking -> Device: YES, App: YES
[INFO] GCDWebServer started on port 8080 and reachable at http://localhost:8080/
2017-08-09 12:32:05.478130+0200 Cochrane+[734:238485] CDVWKWebViewEngine: trying to inject XHR polyfill
2017-08-09 12:32:05.492017+0200 Cochrane+[734:238485] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<WKWebViewConfiguration 0x1701bcd20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _requiresUserActionForMediaPlayback.'
*** First throw call stack:
(0x18665afe0 0x1850bc538 0x18665aca8 0x18707068c 0x100171d80 0x1001729ec 0x1001c7cd4 0x1001c741c 0x1001c78b0 0x1001c4ff0 0x100049034 0x18c78cb04 0x18c78c6e0 0x18c792f60 0x18c7903fc 0x18c801e68 0x1001c999c 0x100048d50 0x10015f230 0x18c7fde48 0x18ca0a37c 0x18ca0fe24 0x18ca248b0 0x18ca0d0b8 0x188204884 0x1882046f0 0x188204aa0 0x18660942c 0x186608d9c 0x1866069a8 0x186536da4 0x18c7f6fc8 0x18c7f1c9c 0x100048c40 0x18554559c)
libc++abi.dylib: terminating with uncaught exception of type NSException
I’ve logged this as well over here and a comment was to:
I have modified a fork of it for myself but basically you just need to comment the lines as below in the background-mode plugin and it will work fine:
/**
*forKey:@"_requiresUserActionForMediaPlayback"]; * causes crash on ios10 with wk
*
* [obj setValue:[NSNumber numberWithBool:NO]
* forKey:@"_requiresUserActionForMediaPlayback"];
*/
Any ideas on how to properly fix this going forward?
Some further environment info:
cli packages: (/Users/dylan/Desktop/Projects/CochranePlus/node_modules)
@ionic/cli-plugin-cordova : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils : 1.7.0
ionic (Ionic CLI) : 3.7.0
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.3
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.6.0
System:
Node : v6.10.3
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.1
ios-sim : 6.0.0
npm : 5.3.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
App crashing .. 11 Ios with WKWebView - ionic-v3
Issue: crash: wkwebview and this plugin not happy. opened by dylanvdmerwe on 2017-08-09. I am using version 0.7.2 with ionic's wkwebview plugin.
Read more >How to determine why WKWebView is crashing - Stack Overflow
I and my testers have noticed these views sometimes go completely blank, and after researching that issue, it seems that WKWebView can crash, ......
Read more >WKWebView crash on iOS 15 beta running in simulator
This code causes a crash when launched from Xcode but I don't seem to have a problem if I run the installed app...
Read more >@telerik/cordova-plugin-wkwebview - npm
Start using @telerik/cordova-plugin-wkwebview in your project by ... did not work, see #98, also this version includes crash recovery, ...
Read more >Cordova iOS Performance Improvements: Drop-in Speed with ...
Here at Ionic, we believe speed is a requirement, not a feature. ... The new WKWebView plugin solved many of the technical challenges ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i have fix it here, try it bugfix for WKWebViewEngine app crash
This issue has been open for a while now. Is there any chance of the main plugin being fixed so that wkwebview will work?