Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

hideKeyboardAccessoryBar not working with WKWebView #151

Open
berndartmueller opened this issue Nov 20, 2015 · 16 comments
Open

hideKeyboardAccessoryBar not working with WKWebView #151

berndartmueller opened this issue Nov 20, 2015 · 16 comments

Comments

@berndartmueller
Copy link

Hey guys,

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

Telerik-Verified-Plugins/WKWebView#85 (comment)

Thanks!

@keenan35i
Copy link

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
Copy link

+1

2 similar comments
@fomkin
Copy link

fomkin commented Dec 29, 2015

+1

@Justin-Credible
Copy link

+1

@keenan35i
Copy link

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
Copy link

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

@keenan35i
Copy link

any updates?

@keenan35i
Copy link

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

@markshust
Copy link

+1, WKWebView is standard going forward

@barocsi
Copy link

barocsi commented Feb 25, 2016

+1

@barocsi
Copy link

barocsi commented Feb 25, 2016

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

@roblav96
Copy link

roblav96 commented Mar 6, 2016

would be awesome to have this implemented please :D

@markshust
Copy link

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
Copy link

ghost commented Sep 9, 2016

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
Copy link

ghost commented Sep 12, 2016

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants