How to install camera on ionic2?


Hi everyone,

I’m using Ionic2 and want to install native camera plugin.
when I use following cli:
ionic plugin add --save cordova-plugin-camera
npm install --save @ionic-native/camera
It installs native camera plugin for ionic3.

How can I install ionic-native camera plugin for ionic2?
Pardon my bad english.



Exactly the same command, there is no difference between how you use Ionic Native in a Ionic 2 or Ionic 3 project.


Thanks for your reply.
The issue was because I didn’t add provider to module.
Thanks anyway, Sujan.