expo-beacon 0.7.25 → 0.7.26
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.
|
@@ -1390,6 +1390,9 @@ public class ExpoBeaconModule: Module {
|
|
|
1390
1390
|
|
|
1391
1391
|
private func rescheduleBeaconInactivity(identifier: String, beacon: CLBeacon? = nil, region: CLBeaconRegion? = nil) {
|
|
1392
1392
|
cancelBeaconInactivity(identifier: identifier)
|
|
1393
|
+
// A fresh valid BLE reading means the beacon is present; discard any
|
|
1394
|
+
// already-armed timeout so it cannot fire while the device is in range.
|
|
1395
|
+
cancelBeaconTimeout(identifier: identifier)
|
|
1393
1396
|
|
|
1394
1397
|
let paired = loadPairedBeaconsRaw().first { ($0["identifier"] as? String) == identifier }
|
|
1395
1398
|
guard let seconds = paired?["timeoutSeconds"] as? Int, seconds > 0 else { return }
|
|
@@ -1406,6 +1409,9 @@ public class ExpoBeaconModule: Module {
|
|
|
1406
1409
|
|
|
1407
1410
|
private func rescheduleEddystoneInactivity(identifier: String, namespace: String, instance: String) {
|
|
1408
1411
|
cancelEddystoneInactivity(identifier: identifier)
|
|
1412
|
+
// A fresh valid BLE reading means the beacon is present; discard any
|
|
1413
|
+
// already-armed timeout so it cannot fire while the device is in range.
|
|
1414
|
+
cancelEddystoneTimeout(identifier: identifier)
|
|
1409
1415
|
|
|
1410
1416
|
let paired = loadPairedEddystonesRaw().first { ($0["identifier"] as? String) == identifier }
|
|
1411
1417
|
guard let seconds = paired?["timeoutSeconds"] as? Int, seconds > 0 else { return }
|