The plugin is installed correctly everything looks fine, but when I open the page all I’m getting in the logcat is:
file:///android_asset/www/build/main.js: Line 79072 : EXCEPTION: Error in ./HomePage class HomePage - inline template:15:4 caused by: No provider for Camera!
The above error is from an Android device, I understood that it won’t work using ionic serve but I thought it will work on a device.
Can somebody please shade some light on what I might be doing wrong?
It would be helpful if it was in the documentation / example. I spend about 1,5 hour looking for the solution before posting the question and it was so simple…
I think @Sujan12’s answer should be the accepted answer. The currently accepted one is recommending putting providers at the component level instead of the app level. That’s only desirable in fairly rare circumstances, and I don’t think this is one of them. People coming across this thread should be declaring native providers in their app module, not in components.