You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ios/CDVWKWebViewEngine.m
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -408,12 +408,18 @@ - (void)pluginInitialize
408
408
selector:@selector(onSocketError:)
409
409
name:@"socketInUseError"object:nil];
410
410
411
+
// If greater than 11
411
412
if (@available(iOS 11.0, *)) {
412
-
// For keyboard dismissal leaving viewport shifted (can potentially be removed when apple releases the fix for the issue discussed here: https://github.com/apache/cordova-ios/issues/417#issuecomment-423340885)
413
-
[[NSNotificationCenterdefaultCenter]
414
-
addObserver:self
415
-
selector:@selector(keyboardWillHide)
416
-
name:UIKeyboardWillHideNotification object:nil];
413
+
// And less than 13.4
414
+
if (@available(iOS 13.4, *)) {} else {
415
+
// For keyboard dismissal leaving viewport shifted
416
+
// Can potentially be removed when apple releases the fix for the issue discussed here: https://github.com/apache/cordova-ios/issues/417#issuecomment-423340885
417
+
// Apple has released a fix in 13.4, but not in 12.x (as of 12.4.6)
0 commit comments