Skip to content

Cordova / PhoneGap Plugin Permission Settings for NSBluetoothPeripheralUsageDescription

Notifications You must be signed in to change notification settings

swetha-thoomoju/cordova-plugin-ios-bluetooth-permissions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

iOS Bluetooth Permissions Plugin for Apache Cordova

Cordova / PhoneGap Plugin Permission Settings for NSBluetoothPeripheralUsageDescription by adding a declaration to the Info.plist file

Install

cordova plugin add cordova-plugin-ios-bluetooth-permissions --save

Usage

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

$ cordova platform rm ios
$ cordova platform add ios

Customizing the prompt message shown to the user

Set the following variables on installation to customize the user prompt message.

  • BLUETOOTH_USAGE_DESCRIPTION for NSBluetoothPeripheralUsageDescription

Example:

cordova plugin add cordova-plugin-ios-bluetooth-permissions --variable BLUETOOTH_USAGE_DESCRIPTION="your usage message" --save

License

[MIT License]

About

Cordova / PhoneGap Plugin Permission Settings for NSBluetoothPeripheralUsageDescription

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published