I want to make sure that that you tried this. I've just faced the 'Camera is not defined ' again:
"refresh" the camera plugin by typing (android/ios - up to you)
cordova plugin rm cordova-plugin-camera
ionic platform rm android
ionic platform add android
cordova plugin add cordova-plugin-camera
I am running the app in a real device, I am using chrome console to debug and type 'window.cordova' or even 'Camera' on chrome's console and the result was undefined which means that cordova wasn't loaded correctly.
Then I've noticed that in my index.html I removed the call to:
I've just added the piece of code above and now my code is like this:
Things are working properly.
Please let us know if you have succeded!