How to access mobile phone native functionality in Ionic applications, for example the camera?
Submitted by: MuhammadIonic does not provide a camera API out of the box. However, since Ionic uses plugins architecture, and because it is based on Cordova, we can use Cordova plugins in our application. Ionic team provides a set of Cordova extensions with Angular wrappers, and they can be found at ngCordova.
To use Cordova plugins, we need to install the plugin using Ionic command install <plugin name>. In some cases, we will additionally need to add the plugin’s Angular module to your Angular application too.
To use a mobile phone’s camera in the Ionic application, we can call the camera API by using cordova-plugin-camera that is hosted on GitHub. This plugin defines a global navigator.camera object, which provides an API for taking pictures and for choosing images from the system’s image library.
Submitted by: Muhammad
To use Cordova plugins, we need to install the plugin using Ionic command install <plugin name>. In some cases, we will additionally need to add the plugin’s Angular module to your Angular application too.
To use a mobile phone’s camera in the Ionic application, we can call the camera API by using cordova-plugin-camera that is hosted on GitHub. This plugin defines a global navigator.camera object, which provides an API for taking pictures and for choosing images from the system’s image library.
Submitted by: Muhammad
Read Online Hybrid Application Developer Job Interview Questions And Answers
Top Hybrid Application Developer Questions
☺ | How to render a 5000 item list in Ionic, without affecting scroll performance? |
☺ | Tell me in broad terms, how do you deploy an Ionic project onto a device? |
☺ | Tell us what do you need to develop in PhoneGap? |
☺ | How to architect PhoneGap applications? |
☺ | How to upgrade PhoneGap? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |