ionic-team / ionic-plugin-keyboard

Ionic Keyboard Plugin for Cordova
Apache License 2.0
610 stars 274 forks source link

hideKeyboardAccessoryBar not working with WKWebView #151

Open berndartmueller opened 9 years ago

berndartmueller commented 9 years ago

Hey guys,

I noticed that hideKeyboardAccessoryBar() does not work with the Telerik WKWebView Plugin. Can you please fix this issue?

https://github.com/Telerik-Verified-Plugins/WKWebView/issues/85#issuecomment-158388377

Thanks!

keenan35i commented 8 years ago

Any updates? i have the same problem, i believe this plugin has the fix for this issue https://github.com/apache/cordova-plugins/tree/master/keyboard it is missing some things that this plugin has to offer so i will wait for this plugin to fix, thanks!

oallouch commented 8 years ago

+1

fomkin commented 8 years ago

+1

Justin-Credible commented 8 years ago

+1

keenan35i commented 8 years ago

Anybody is maintaining this plugin? It's been over a month since this issue been logged, and it is a really simple fix...shouldn't take more than an hour total. Can you please add support to hiding the accessory bar for WKWebView along side UIWebView. Please let us know if there will not be future updates so we can find another plugin or write our own.

oallouch commented 8 years ago

I should definitely made core. I might come. See https://twitter.com/shazron/status/680006584894799872

keenan35i commented 8 years ago

any updates?

keenan35i commented 8 years ago

Any updates? Really need this...we're about to go into production and this would be a life saver!

markshust commented 8 years ago

+1, WKWebView is standard going forward

barocsi commented 8 years ago

+1

barocsi commented 8 years ago

I have tried the suggested https://github.com/cjpearson/cordova-plugin-keyboard but it made the app to go blank.

roblav96 commented 8 years ago

would be awesome to have this implemented please :D

markshust commented 8 years ago

I just submitted a PR for this. I backported it from https://github.com/cjpearson/cordova-plugin-keyboard because I wanted to use this plugin (specifically, because keyboard height wasn't available in event triggers in https://github.com/cjpearson/cordova-plugin-keyboard).

Cheers! Mark

ghost commented 8 years ago

This directive fixed it for me:

.directive('form', function () {
      return function () {
        if (window.cordova && window.cordova.plugins.Keyboard && navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
          cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
        }
      };
    }
  );
ghost commented 8 years ago

I've accomplished a different workaround on this.

angular.module('app')
  .run(function($rootScope, $ionicPlatform, $ionicScrollDelegate){

      $ionicPlatform.ready(function () {
          if (window.cordova && window.cordova.plugins.Keyboard){
              cordova.plugins.Keyboard.disableScroll(true); // This will prevent the view to bounce when inputs are on focus
          }
      });

      $rootScope.$on('$ionicView.loaded', function () {
          if (window.cordova && window.cordova.plugins.Keyboard) {
              cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false); // This makes the accessory bar visible and it only works when the view is loaded and DOM ready
          }
      });

      window.addEventListener('native.keyboardshow', function () {
          $ionicScrollDelegate.scrollBy(0, 1); //This will return focus to the current input once the keyboard slides-up in the view
      });

};)
nitinpund commented 6 years ago

I want to hide accessory bar for both android and ios, but its not working. I am using ionic native keyboard plugin. with ionic 3