cordova-plugin-ios-contacts-permissions

1.0.0 • Public • Published

iOS 11 Contacts Permissions Plugin for Apache Cordova

Cordova / PhoneGap Plugin Permission Settings for NSContactsUsageDescription in iOS 11 by adding a declaration to the Info.plist file

Install

Latest published version on npm (with Cordova CLI >= 5.0.0)

cordova plugin add cordova-plugin-ios-contacts-permissions --save

Latest version from GitHub

cordova plugin add https://github.com/niconaso/cordova-plugin-ios-contacts-permissions.git --save

Customising the message prompts

On installation you can customise the prompts shown by setting the following variables on installation.

  • CONTACTS_USAGE_DESCRIPTION for NSContactsUsageDescription

For example:

cordova plugin add cordova-plugin-ios-contacts-permissions --variable CONTACTS_USAGE_DESCRIPTION="your usage message" --save

Usage

For the changes to plugin.xml to take effect, you must refresh the ios.json file (inside the /plugin folder):

$ cordova platform rm ios
$ cordova platform add ios

Platforms

Applies to iOS 10/11 only.

License

[MIT License]

Package Sidebar

Install

npm i cordova-plugin-ios-contacts-permissions

Weekly Downloads

52

Version

1.0.0

License

MIT

Unpacked Size

4.13 kB

Total Files

4

Last publish

Collaborators

  • niconaso