@capgo/capacitor-ibeacon 8.1.4 → 8.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -49,19 +49,24 @@ Add the following to your `AndroidManifest.xml`:
|
|
|
49
49
|
<manifest>
|
|
50
50
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
51
51
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
52
|
+
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
|
53
|
+
|
|
52
54
|
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
53
55
|
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
|
54
|
-
<uses-permission android:name="android.permission.
|
|
56
|
+
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
|
|
57
|
+
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
|
58
|
+
|
|
59
|
+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
60
|
+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />
|
|
61
|
+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
55
62
|
</manifest>
|
|
56
63
|
```
|
|
57
64
|
|
|
58
|
-
**Important**: For Android, you need to integrate the [AltBeacon](https://altbeacon.github.io/android-beacon-library/) library into your project for beacon detection to work.
|
|
59
|
-
|
|
60
65
|
Add to your app's `build.gradle`:
|
|
61
66
|
|
|
62
67
|
```gradle
|
|
63
68
|
dependencies {
|
|
64
|
-
implementation 'org.altbeacon:android-beacon-library:2.
|
|
69
|
+
implementation 'org.altbeacon:android-beacon-library:2.21.2'
|
|
65
70
|
}
|
|
66
71
|
```
|
|
67
72
|
|
|
@@ -43,7 +43,7 @@ import org.altbeacon.beacon.Region;
|
|
|
43
43
|
)
|
|
44
44
|
public class CapacitorIbeaconPlugin extends Plugin implements BeaconConsumer {
|
|
45
45
|
|
|
46
|
-
private final String pluginVersion = "8.1.
|
|
46
|
+
private final String pluginVersion = "8.1.5";
|
|
47
47
|
private static final String FOREGROUND_CHANNEL_ID = "beacon_service_channel";
|
|
48
48
|
private static final int FOREGROUND_NOTIFICATION_ID = 456;
|
|
49
49
|
private BeaconManager beaconManager;
|
|
@@ -4,7 +4,7 @@ import CoreLocation
|
|
|
4
4
|
|
|
5
5
|
@objc(CapacitorIbeaconPlugin)
|
|
6
6
|
public class CapacitorIbeaconPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
7
|
-
private let pluginVersion: String = "8.1.
|
|
7
|
+
private let pluginVersion: String = "8.1.5"
|
|
8
8
|
public let identifier = "CapacitorIbeaconPlugin"
|
|
9
9
|
public let jsName = "CapacitorIbeacon"
|
|
10
10
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED