cordova-plugin-bluetooth-classic-serial-port
Advanced tools
Comparing version 0.9.14 to 0.9.15
@@ -0,1 +1,4 @@ | ||
= 0.9.15 = | ||
Android: Move Android permissions to config.xml | ||
= 0.9.14 = | ||
@@ -2,0 +5,0 @@ iOS: Add plugin variables |
{ | ||
"name": "cordova-plugin-bluetooth-classic-serial-port", | ||
"version": "0.9.14", | ||
"version": "0.9.15", | ||
"description": "Cordova Bluetooth Serial Port Profile Communication Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -65,2 +65,19 @@ # Bluetooth Classic Serial Plugin for Cordova | ||
## Android permission | ||
To include the default set of permissions the plugin installs on Android SDK v33+, add the following snippet in your `config.xml` file, in the `<platform name="android">` section: | ||
```xml | ||
<config-file target="AndroidManifest.xml" parent="/manifest"> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="28" /> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="34" /> | ||
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" /> | ||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> | ||
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="33" /> | ||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="33" /> | ||
</config-file> | ||
``` | ||
For the best understanding about which permissions are needed for which combinations of target SDK version & OS version, see [Android Bluetooth permissions](https://developer.android.com/guide/topics/connectivity/bluetooth/permissions) | ||
## Ionic | ||
@@ -67,0 +84,0 @@ |
/*global cordova*/ | ||
module.exports = { | ||
version: '0.9.14', | ||
version: '0.9.15', | ||
@@ -6,0 +6,0 @@ connect: function (deviceId, interfaceArray, success, failure) { |
Sorry, the diff of this file is not supported yet
136149
733