Cordova Plug-in not recognized


#1

Hello experts,

After reinstalling my development environment my ionic app started throwing following error -

TypeError: undefined is not an object (evaluating ‘window.cordova.plugins.Keyboard’)
Error: Can’t find variable: Media

package.json does have mention of keyboard and device plugin.

I have spent two weeks researching with no success.
Any help will be greatly appreciated


#2

have you install the keyboard plugin, if yes try cordova.plugins.Keyboard this one in your app.js


#3

Yes, both the plugins are installed. Do you mean try without ‘window.’ ?


#4

yes try it without window…


#5

Unfortunately that didn’t help. Besides my main problem is Media error for playing Audio files