{"action":"closed","issue":{"url":"https://api.github.com/repos/driftyco/ionic-plugin-keyboard/issues/132","labels_url":"https://api.github.com/repos/driftyco/ionic-plugin-keyboard/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-plugin-keyboard/issues/132/comments","events_url":"https://api.github.com/repos/driftyco/ionic-plugin-keyboard/issues/132/events","html_url":"https://github.com/driftyco/ionic-plugin-keyboard/issues/132","id":107672845,"number":132,"title":"TypeError: undefined is not an object (evaluating 'window.cordova.plugins.Keyboard')","user":{"login":"ronyrun","id":7273443,"avatar_url":"https://avatars.githubusercontent.com/u/7273443?v=3","gravatar_id":"","url":"https://api.github.com/users/ronyrun","html_url":"https://github.com/ronyrun","followers_url":"https://api.github.com/users/ronyrun/followers","following_url":"https://api.github.com/users/ronyrun/following{/other_user}","gists_url":"https://api.github.com/users/ronyrun/gists{/gist_id}","starred_url":"https://api.github.com/users/ronyrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronyrun/subscriptions","organizations_url":"https://api.github.com/users/ronyrun/orgs","repos_url":"https://api.github.com/users/ronyrun/repos","events_url":"https://api.github.com/users/ronyrun/events{/privacy}","received_events_url":"https://api.github.com/users/ronyrun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T09:09:29Z","updated_at":"2015-09-22T10:09:41Z","closed_at":"2015-09-22T10:09:41Z","body":"Hello, \r\nThank you for your work !\r\nI have a pb with the window.cordova.plugins.Keyboard.\r\nwould you help me to solve it ?\r\n\r\nOn IOS I encounter this error, but not on Android.\r\nI wrapped correctly the call on \r\n```\r\ndocument.addEventListener('deviceready', function() {\r\n                    angular.element(document).ready(function() {\r\n                       angular.bootstrap(document.body, ['MyApp']);\r\n                    });\r\n}, false);\r\n```\r\n\r\n\r\nand I have the error in the run\r\n\r\n```\r\n        if(window.cordova && window.cordova.plugins.Keyboard) {\r\n            cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);\r\n            cordova.plugins.Keyboard.disableScroll(true);\r\n        }\r\n```\r\n\r\n\r\nI reinstalled several times the keyboard plugin.\r\nI succeed with a `ionic state restore` but it's suspicious...\r\nbecause I can't uninstall it : \r\n\r\n```\r\n users-Mac:wa-user ron$ cordova plugin rm  ionic-plugin-keyboard\r\nUninstalling ionic-plugin-keyboard from ios\r\nRemoving \"ionic-plugin-keyboard\"\r\nSyntaxError: Unexpected token v\r\n    at Object.parse (native)\r\n    at getJson (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/metadata.js:29:31)\r\n    at Object.exports.remove_fetch_metadata (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/metadata.js:63:24)\r\n    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/plugin.js:274:34\r\n    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)\r\n    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)\r\n    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)\r\n    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44\r\n    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)\r\n    at process._tickCallback (node.js:355:11)\r\nusers-Mac:wa-user ron$ cordova plugin add ionic-plugin-keyboard\r\nFetching plugin \"ionic-plugin-keyboard\" via npm\r\nSyntaxError: Unexpected token v\r\n    at Object.parse (native)\r\n    at getJson (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/metadata.js:29:31)\r\n    at Object.exports.save_fetch_metadata (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/metadata.js:56:24)\r\n    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:165:18\r\n    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)\r\n    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)\r\n    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)\r\n    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44\r\n    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)\r\n    at process._tickCallback (node.js:355:11)\r\n\r\n```\r\n\r\n\r\n\r\n```\r\nYour system information:\r\nCordova CLI: 5.3.1\r\nGulp version:  CLI version 3.8.11\r\nGulp local:   Local version 3.8.11\r\nIonic Version: 1.1.0\r\nIonic CLI Version: 1.6.4\r\nIonic App Lib Version: 0.3.8\r\nios-deploy version: Not installed\r\nios-sim version: 3.1.1 \r\nOS: Mac OS X Yosemite\r\nNode Version: v0.12.7\r\nXcode version: Xcode 6.4 Build version 6E35b \r\n```\r\n"}}