Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-bluetooth-classic-serial-port

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-bluetooth-classic-serial-port - npm Package Compare versions

Comparing version 0.9.13 to 0.9.14

5

CHANGES.txt

@@ -0,1 +1,4 @@

= 0.9.14 =
iOS: Add plugin variables
= 0.9.13 =

@@ -38,3 +41,3 @@ Android: Update permission for sdk 34

= 0.9.2 =
= 0.9.2 =
Added additional logging to iOS connect method

@@ -41,0 +44,0 @@

2

package.json
{
"name": "cordova-plugin-bluetooth-classic-serial-port",
"version": "0.9.13",
"version": "0.9.14",
"description": "Cordova Bluetooth Serial Port Profile Communication Plugin",

@@ -5,0 +5,0 @@ "cordova": {

@@ -57,21 +57,26 @@ # Bluetooth Classic Serial Plugin for Cordova

## Ionic Native
## Plugin variables
### Dev version
All variables can be modified after installation by updating the values in `package.json`.
$ npm i ionic-native-bluetooth-classic-serial-port
- `BLUETOOTH_USAGE_DESCRIPTION`: [**iOS**] defines the values for [NSBluetoothAlwaysUsageDescription](https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription?language=objc).
### Prod version
- `IOS_INIT_ON_LOAD`: [**iOS**] Prevents the Bluetooth plugin from being initialised until first access to the `bluetoothClassicSerial` window object. This allows an application to warn the user before the Bluetooth access permission is requested.
$ npm i @ionic-native/bluetooth-classic-serial-port
## Ionic
$ npm i @awesome-cordova-plugins/bluetooth-classic-serial-port
## iOS Notes
iOS requires that the device's protocol string is in the p-list. This plugin has a dependency on [cordova-custom-config](https://github.com/dpa99c/cordova-custom-config) which enables plist entries to be created from entries the application's cordova config.xml file.
iOS requires that the device's protocol string is in the p-list.
This plugin has a dependency on [cordova-custom-config](https://github.com/dpa99c/cordova-custom-config) which enables plist entries to be created from entries the application's cordova config.xml file.
The Phonegap Build service doesn't use this plugin, and instead appears to have it's own method for passing entries into the iOS plist. Examples below.
### Examples
Replace the text 'first.device.protocol.string' with the protocol string for the Bluetooth accessory you are connecting to. Create a new line for each protocol string. Some devices may have more than one. The plugin only allows for connection to one device and one protocol. If you need to connect to another, disconnect, then connect to the required device and protocol.
Replace the text 'first.device.protocol.string' with the protocol string for the Bluetooth accessory you are connecting to.
Create a new line for each protocol string.
Some devices may have more than one.
The plugin only allows for connection to one device and one protocol.
If you need to connect to another, disconnect, then connect to the required device and protocol.

@@ -91,13 +96,3 @@ #### Cordova Command Line config.xml entry for Supported Accessories

#### Phonegap Build config.xml entry for Supported Accessories
```xml
<config-file platform="ios" parent="UISupportedExternalAccessoryProtocols">
<array>
<string>first.device.protocol.string</string>
<string>second.device.protocol.string</string>
</array>
</config-file>
```
# Examples

@@ -711,4 +706,2 @@

If you don't need **serial** over Bluetooth, try the [PhoneGap Bluetooth Plugin for Android](https://github.com/phonegap/phonegap-plugins/tree/DEPRECATED/Android/Bluetooth/2.2.0) or perhaps [phonegap-plugin-bluetooth](https://github.com/tanelih/phonegap-bluetooth-plugin).
If you need generic Bluetooth Low Energy support checkout Don Colemans's [Cordova BLE Plugin](https://github.com/don/cordova-plugin-ble-central).

@@ -715,0 +708,0 @@

/*global cordova*/
module.exports = {
version: '0.9.13',
version: '0.9.14',

@@ -6,0 +6,0 @@ connect: function (deviceId, interfaceArray, success, failure) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc