ngCordova Camera Error caused by ngMaterial

Whenever I called $cordovaCamera.getPicture, the API returned “Camera error.” in the error callback. This prevented me from taking a photo using my computers webcam that I setup with my AVD. I spent hours trying to find the root cause.

It turned out that after I removed the dependency injection of ngMaterial (Angular Material), it all worked, I was able to use the emulator to save base64 (DATA_URL) images taken by my computers webcam to Local Storage, and display it in a Flexbox collection view.

Why is ngMaterial conflicting with navigator.camera.getPicture?