Skip to content

Export all contacts (device, Google, Facebook etc) to a file and use its path for further processing

License

Notifications You must be signed in to change notification settings

Ti-webdev/cordova-plugin-export-contacts-vcf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-exportContactsVCF

By Neeraj Tuteja

Updated by Vasiliy Mikhaylovsky

##Description Export all contacts (device, Google, Facebook etc) to a file and use its path for further processing

Installation

This requires cordova 5.0+ ( current stable v1.0.0 )

cordova plugin add cordova-plugin-export-contacts-vcf

It is also possible to install via repo url directly ( unstable )

cordova plugin add https://github.com/Ti-webdev/cordova-plugin-export-contacts-vcf.git

Supported Platforms

  • Android

Usage

  1. Wait for deviceReady.
  2. Call plugins.exportContactsVCF with parameters

API

plugins.exportContactsVCF(onSuccess, onFail, fileName, fileExtension) default fileName is 'exportedContactsInVCF', fileExtension is 'vcf'

plugins.exportContactsVCF(function(pathToVcfFile) {
    console.log('vcf stored at: ' + pathToVcfFile)
}, function(err) {
  console.error('Error: ' + err)
}, 'my-contacts')

About

Export all contacts (device, Google, Facebook etc) to a file and use its path for further processing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 76.0%
  • JavaScript 24.0%