How to Integrate Contact Plugin of Ionic
Thanks to Ionic's documentation, many developers struggle in integrating it's native API. Today I am gonna walk you through how to integrate and use Contact API of Ionic . I have used Ionic (version 3) with Angular ( Version 4) to implement this feature . 1. Installation of Contact Plugin Use following commands to install Contact plugin and corresponding node packages.These commands will update your package.json and config.xml. $ ionic cordova plugin add cordova-plugin-contacts $ npm install --save @ionic-native/contacts 2. Adding Plugin In App Module a. Import Contact plugin in your app.module.ts file import { Contacts } from '@ionic-native/contacts'; b. Add Contacts entry in list of provides in your app.module.ts file providers:[ ... Contacts ... ] 3. Use Contact plugin into Component a. Import Contact plugin in your xyz.component.ts file import { Contacts } from '@ionic-native/contac...