Hi there. I have made an app for ios and installed in my iphone. It has Camera plugin in it. It works perfect in android.
Also in iphone, as I run ionic view app (downloaded from appstore) it works perfect into that (first my phone asks about allowing access to camera), But not working in my own app.
In ionic view app :
But in my own app, Nothing! Doesn’t work. Even auto rotation just works in ionic view app.
Just add --save after installing a plugin. For example:
cordova plugin add cordova-plugin-camera --save
As in ionic package docs says:
Cordova plugins may be installed locally, they may not be defined explicitly in your config.xml. To ensure that the build servers know about which plugins you need, use the --save flag when adding and removing plugins.
Just as a heads up, while the above solution is correct, I thought I might add a bit more. I migrated my app from ionic.RC0 to RC1 and found this issue. In order to solve it, I needed to complete two steps.
ionic plugin remove --force cordova-plugin-camera
I had to force removal of the camera plugin, because it was automatically included. Secondly, I had to do this:
Because you needed both NSCameraUsageDescription and NSPhotoLibraryUsageDescriptionentry in your info.plist file for ios 10.
EDIT: I also had to delete and re-build the project, as it still wasnt accepting the variables during the build. You can also hand modify these in xcode.