Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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: