How to install camera on ionic2?


#1

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.

Thanks,
Bobo


#2

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


#3

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