how to enable cordove camera plugin in monaca Localkit
-
Hi
how can I enable cordove camera plugin in monaca localkit?
which js files I have to include in the project?
-
@Belal-Othman You just use something like:
document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { console.log(navigator.camera); }
The documents for the API are located: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/index.html
-
You also need to import the plugin itself.
The best way for doing it is to go toBuild Settings -> Cordova Plugins
and import it.
-
@Andi
thanks for your help.
that what happen when I press Build Settings
Note: I am using the basic account from Monaca.
-
@Andi Oops, yeah that too. Kind of forget to specifically mention that part. :stuck_out_tongue: