Cordova-plugin-camera broswer: “Can’t find variable Camera”

I’m creating a new thread as Using ngCordova: “Can’t find variable Camera” is very old and things change very quick.

According to https://github.com/apache/cordova-plugin-camera, the browser is supported by the plugin, but I get “Can’t find variable Camera” when running with ionic serve. Any ideas ?

thanks

Try to wrap your plugin call in

 $ionicPlatform.ready(function() {
    //your call to the plugin goes here
 })

Sometimes it’s that easy, even if I didn’t try it with your plugin

1 Like