ionic-team / ionic-plugin-keyboard

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

TypeError: undefined is not an object (evaluating 'cordova.plugins.Keyboard.hide') #201

Closed TawabG closed 8 years ago

TawabG commented 8 years ago

I'm working in Intel XDK IDE, and have been for the last couple of weeks. All the plugins that I'm implementing are working perfectly fine, except for this one I keep getting this error: TypeError: undefined is not an object (evaluating 'cordova.plugins.Keyboard.hide')

-Yes I did link to cordova.js -Yes the <clobbers target="cordova.plugins.Keyboard" /> is set correctly -Yes I work in one .html file (not multiple) -Yes I've updated to the lastest cordova ionic plugin.(2.2)

Weird thing is, when i'm testing this on an android phone it works.

Any suggestions are welcome!

tony-- commented 8 years ago

@TawabG - when do you see this error in Intel XDK? Is it in the emulator or while debugging or some other time?

TawabG commented 8 years ago

I used to get this error when debugging in Intel XDK. However I noticed that when I actually built the app, the plugin works. So apparently intel XDK doesn't support 3rd party plugins when debugging + simulating inside intel XDK(iOS only). However, when debugging with an android device it does work.

tony-- commented 8 years ago

@TawabG That is all correct. Glad you got it worked out!