Giter Club home page Giter Club logo

phonegap-softkeyboard's People

Contributors

tobias-b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

phonegap-softkeyboard's Issues

incompatible types: CordovaWebView cannot be converted to View

I'm using cordova version 5.3.3

Using the following commands to create new android project "demo":
cordova create demo

cd demo

cordova platform add android

cordova plugin add https://github.com/ti8m/DocumentHandler.git

cordova plugin add https://github.com/phonostar/PhoneGap-SoftKeyboard.git

cordova build android

**build failed:

C:\Users\demo\platforms\android\src\de\phonostar\SoftKeyboard.java:18: error: incompatible types: CordovaWebView cannot be converted to View mgr.showSoftInput(webView, InputMethodManager.SHOW_IMPLICIT);**
it works in version 4.3 and below,

using phonegap 5.3.6 gives the same error.

Please help,

Thanks

Only for Android?

Might save someone some time...

From a quick glance at the plugin XML, looks like there's only Android platform support. Could be wrong. Documentation would be rad.

I found a bug

Android 4.03 and 4.11

when I call your method

SoftKeyboard.isShowing(function(){ alert('success'); }, function(){ alert('fail'); })

it will alert 'success'

but when I only call your method

SoftKeyboard.show()

and the keyboard will show about Half a second (In fact, a shorter time)
and disappear by itself

SoftKeyBoard is not defined

I have a PhoneGap Build 3.3.0 project, I'm using Angular 1.2.15 to handle all JS interaction.

  1. I added the plugin reference to the config.xml.
  2. I called SoftKeyboard.show() from ng-click event.
  3. I get error, "SoftKeyBoard is not defined".

Am I missing anything?

        scope.$watch('searchfocus', function(value) {
            $timeout(function() {
                if (value == true) {
                    if(document.activeElement != element[0]) {
                        try {
                            element[0].focus();
                            SoftKeyBoard.show();
                        }
                        catch (e) {
                           alert(e);
                        }                          
                    }
                }
            }, 500);
        });

Type support

There is a way to improve that plugin to show different type of keyboard? (number, mail...)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.