Uncaught TypeError: Cannot read property 'Keyboard' of undefined

Hi all!
I am trying to test my app on mobile but getting an error

Uncaught TypeError: Cannot read property ‘Keyboard’ of undefined

on code

$ionicPlatform.ready(function () {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if (window.cordova && window.cordova.plugins.Keyboard) {

my html have

  <script src="lib/ng-cordova-master/dist/ng-cordova.min.js"></script>
1 Like

and you added the keyboard plugin?

http://ionicframework.com/docs/api/page/keyboard/

2 Likes

I ran into this for a while today. Running on IOS - started with a clean template app - had this error.

The fix was to remove platform support for IOS and then re-add. Somehow the default IOS support didn’t include all of the required ‘bits’.

Thanks for your advise. I was facing same issue. I did following

cordova plugin add com.ionic.keyboard

It resolved issue.

Error: Unpublished by drifty on 2015-04-22T14:17:30.006Z

it is giving an error.

@sreedharbukya