Introduction
Ionic is an open-source framework. It's a very popular cross-platform mobile app framework which is helpful to develop or build hybrid mobile apps easily. It will save a lot of time and money for investment.
This article demonstrates how to select multiple images and load images in the ionic application page using native camera plugin in ionic 3. The following tools and requirements should be prepared before reading this article.
- Node.js
- Latest Ionic 3 CLI
- Latest Cordova
- Node Command Line Window (Windows) or Terminal (OS X, Linux)
- Text Editor or IDE (e.g. Visual Studio Code, Atom,)
Once we have installed Node.js we can install other tools on the terminal or command line. Run the following command step by step.
npm install -g ionic Cordova
Once the installation is finished let’s start creating an ionic 3 app.
Create Ionic 3 app
Open your Node.js terminal and open a specific location to create ionic 3 apps.
Start a new Ionic project using ionic start command,
ionic start myApp
This command will take a few minutes as it installs all dependencies and modules for a project.
Now, change the location to myApp
cd myApp
Once changed, the location myApp, Add android platform to the app.
- ionic Cordova platform add android
- ionic Cordova platform add a browser (For Browser)
Now, run a project using the following command.
- ionic serve (For Browser)
- ionic Cordova run Android (For Device)
Make sure you have connected the device and settings have been set.
Now let’s start,
The Image Picker Plugin is used to select multiple images.
Step 1
Follow the below-mentioned steps to install the Image Picker plugin to our app.
ionic Cordova plugin add Cordova-plugin-Telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"
npm install --save @ionic-native/image-picker
Step 2
Add Camera plugin to your app module.
app.module.ts file
- //here importing lines for access camera object and file plugin to our app.
- import { ImagePicker } from '@ionic-native/image-picker';
- @NgModule({
- providers: [
- //here added class to our provider service block
- ImagePicker
- ]
- })
- export class AppModule { }
Step 3
Integrate image picker with component part in our app.
Sample.ts File

Srinivasan K KPosted Aug 20, 2018, 5:48 AM
With respect to your article it's cool. But regarding the plugin (Cordova-plugin-Telerik-imagepicker) android 6,7 version based app getting crashed. so make sure there won't be any issues before using this plugin!