Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usewkwebview = yes crash iOS 9.X #323

Closed
yelban opened this issue Oct 22, 2018 · 1 comment
Closed

usewkwebview = yes crash iOS 9.X #323

yelban opened this issue Oct 22, 2018 · 1 comment

Comments

@yelban
Copy link

yelban commented Oct 22, 2018

usewkwebview=yes will crash on iOS 9.0 ~ 9.3
10.3.1, 11.0.1, 12.0 work correctly.

Xcode debug console output
XApp[16531:942778] -[WKWebViewConfiguration setIgnoresViewportScaleLimits:]: unrecognized selector sent to instance 0x7fcabdd1fe00

XApp[16531:942778] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[WKWebViewConfiguration setIgnoresViewportScaleLimits:]: unrecognized selector sent to instance 0x7fcabdd1fe00'
...
libc++abi.dylib: terminating with uncaught exception of type NSException

@NishVincent
Copy link

I dont think wkwebview will work on ios 9.0 - 9.3
it has to fallback to uiwebview

Would it be ok to try this option ?

const options = {
location: 'yes',
clearcache: 'yes',
clearsessioncache: 'yes',
enableViewportScale: 'yes'
}

  if (ionic.Platform.isIOS() && parseInt(ionic.Platform.version()) > 9) {
    options.usewkwebview = 'yes'
  }

  $cordovaInAppBrowser.open(encodeURI(URL), '_blank', options);

dpa99c added a commit to dpa99c/cordova-plugin-themeablebrowser that referenced this issue Oct 30, 2018
dpa99c added a commit to dpa99c/cordova-plugin-themeablebrowser that referenced this issue Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants