Skip to content

Commit

Permalink
iOS 11, it's not working anymore #55
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Sep 17, 2017
1 parent 8dfa322 commit b110807
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-native-keyboard",
"version": "1.4.5",
"version": "1.4.6",
"description": "This plugin aims to solve common keyboard problems encountered with Cordova / PhoneGap apps. The messenger component (see screenshots) is ready for production, but this plugin will have more tricks up its sleeve. I'll document those once they're ready for primetime as well.",
"cordova": {
"id": "cordova-plugin-native-keyboard",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-native-keyboard"
version="1.4.5">
version="1.4.6">

<name>Native Keyboard</name>

Expand Down
3 changes: 3 additions & 0 deletions src/ios/CDVNativeKeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ - (void)showMessenger:(CDVInvokedUrlCommand*)command {
[self.webView.scrollView scrollRectToVisible:CGRectInfinite animated:YES];
}

// This is required since iOS 11, see https://github.com/slackhq/SlackTextViewController/issues/604
[tvc.textInputbar sendSubviewToBack:[tvc.textInputbar.subviews lastObject]];

CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:@{@"ready":@(YES)}];
pluginResult.keepCallback = [NSNumber numberWithBool:YES];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
Expand Down
Binary file modified src/ios/lib/NativeKeyboard.framework/Info.plist
Binary file not shown.
Binary file modified src/ios/lib/NativeKeyboard.framework/NativeKeyboard
Binary file not shown.

0 comments on commit b110807

Please sign in to comment.