@woosmap/react-native-plugin-geofencing 0.5.0 → 0.5.1
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/CHANGELOG.md
CHANGED
|
@@ -168,8 +168,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
168
168
|
}
|
|
169
169
|
} else {
|
|
170
170
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
171
|
-
WoosmapGeofenceMessage.
|
|
172
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
171
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
172
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
173
173
|
}
|
|
174
174
|
} else {
|
|
175
175
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
@@ -197,8 +197,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
197
197
|
}
|
|
198
198
|
} else {
|
|
199
199
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
200
|
-
WoosmapGeofenceMessage.
|
|
201
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
200
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
201
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
202
202
|
}
|
|
203
203
|
} else {
|
|
204
204
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
@@ -223,8 +223,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
223
223
|
}
|
|
224
224
|
else{
|
|
225
225
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
226
|
-
WoosmapGeofenceMessage.
|
|
227
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
226
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
227
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -333,8 +333,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
333
333
|
resolve(watchid)
|
|
334
334
|
} else {
|
|
335
335
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
336
|
-
WoosmapGeofenceMessage.
|
|
337
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
336
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
337
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
}
|
|
@@ -392,8 +392,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
392
392
|
resolve(watchid)
|
|
393
393
|
} else {
|
|
394
394
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
395
|
-
WoosmapGeofenceMessage.
|
|
396
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
395
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
396
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
}
|
|
@@ -443,7 +443,7 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
443
443
|
/// - reject: return error info
|
|
444
444
|
@objc(addRegion:withResolver:withRejecter:)
|
|
445
445
|
func addRegion(regioninfo:NSDictionary, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) {
|
|
446
|
-
if WoosmapGeofenceService.shared
|
|
446
|
+
if let woosService = WoosmapGeofenceService.shared {
|
|
447
447
|
if let regioninfo = regioninfo as? [String: Any] {
|
|
448
448
|
var regionid = UUID().uuidString
|
|
449
449
|
var radius = 100
|
|
@@ -482,19 +482,25 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
482
482
|
WoosmapGeofenceMessage.invalidRegionType,
|
|
483
483
|
showWoosmapError(WoosmapGeofenceMessage.invalidRegionType))
|
|
484
484
|
} else {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
485
|
+
if(woosService.isSearviceActive()){
|
|
486
|
+
let coordinate: CLLocationCoordinate2D = CLLocationCoordinate2D.init(latitude: lat, longitude: lng)
|
|
487
|
+
let (regionIsCreated, identifier) = woosService.addRegion(identifier: regionid, center: coordinate, radius: radius, type: regiontype)
|
|
488
|
+
var result: [AnyHashable: Any] = [:]
|
|
489
|
+
result["regionid"] = identifier
|
|
490
|
+
result["iscreated"] = regionIsCreated
|
|
491
|
+
if(regionIsCreated) {
|
|
492
|
+
resolve(result["regionid"])
|
|
493
|
+
}
|
|
494
|
+
else{
|
|
495
|
+
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
496
|
+
WoosmapGeofenceMessage.regionInfoDuplicateID,
|
|
497
|
+
showWoosmapError(WoosmapGeofenceMessage.regionInfoDuplicateID))
|
|
498
|
+
}
|
|
493
499
|
}
|
|
494
500
|
else{
|
|
495
501
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
496
|
-
WoosmapGeofenceMessage.
|
|
497
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
502
|
+
WoosmapGeofenceMessage.woosmapProfilNotActivated,
|
|
503
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapProfilNotActivated))
|
|
498
504
|
}
|
|
499
505
|
}
|
|
500
506
|
} else {
|
|
@@ -505,8 +511,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
505
511
|
|
|
506
512
|
} else {
|
|
507
513
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
508
|
-
WoosmapGeofenceMessage.
|
|
509
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
514
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
515
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
510
516
|
}
|
|
511
517
|
}
|
|
512
518
|
|
|
@@ -538,8 +544,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
538
544
|
}
|
|
539
545
|
} else {
|
|
540
546
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
541
|
-
WoosmapGeofenceMessage.
|
|
542
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
547
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
548
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
543
549
|
}
|
|
544
550
|
}
|
|
545
551
|
|
|
@@ -573,8 +579,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
573
579
|
}
|
|
574
580
|
} else {
|
|
575
581
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
576
|
-
WoosmapGeofenceMessage.
|
|
577
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
582
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
583
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
578
584
|
}
|
|
579
585
|
}
|
|
580
586
|
|
|
@@ -594,8 +600,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
594
600
|
resolve(result);
|
|
595
601
|
} else {
|
|
596
602
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
597
|
-
WoosmapGeofenceMessage.
|
|
598
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
603
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
604
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
599
605
|
}
|
|
600
606
|
}
|
|
601
607
|
|
|
@@ -625,8 +631,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
625
631
|
|
|
626
632
|
} else {
|
|
627
633
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
628
|
-
WoosmapGeofenceMessage.
|
|
629
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
634
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
635
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
630
636
|
}
|
|
631
637
|
}
|
|
632
638
|
|
|
@@ -641,8 +647,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
641
647
|
resolve(WoosmapGeofenceMessage.regionDeleted);
|
|
642
648
|
} else {
|
|
643
649
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
644
|
-
WoosmapGeofenceMessage.
|
|
645
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
650
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
651
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
646
652
|
}
|
|
647
653
|
}
|
|
648
654
|
|
|
@@ -677,8 +683,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
677
683
|
|
|
678
684
|
} else {
|
|
679
685
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
680
|
-
WoosmapGeofenceMessage.
|
|
681
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
686
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
687
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
682
688
|
}
|
|
683
689
|
}
|
|
684
690
|
|
|
@@ -698,8 +704,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
698
704
|
resolve(result);
|
|
699
705
|
} else {
|
|
700
706
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
701
|
-
WoosmapGeofenceMessage.
|
|
702
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
707
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
708
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
703
709
|
}
|
|
704
710
|
}
|
|
705
711
|
|
|
@@ -729,8 +735,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
729
735
|
|
|
730
736
|
} else {
|
|
731
737
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
732
|
-
WoosmapGeofenceMessage.
|
|
733
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
738
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
739
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
734
740
|
}
|
|
735
741
|
}
|
|
736
742
|
|
|
@@ -749,8 +755,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
749
755
|
resolve(result);
|
|
750
756
|
} else {
|
|
751
757
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
752
|
-
WoosmapGeofenceMessage.
|
|
753
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
758
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
759
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
754
760
|
}
|
|
755
761
|
}
|
|
756
762
|
|
|
@@ -780,8 +786,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
780
786
|
|
|
781
787
|
} else {
|
|
782
788
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
783
|
-
WoosmapGeofenceMessage.
|
|
784
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
789
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
790
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
785
791
|
}
|
|
786
792
|
}
|
|
787
793
|
|
|
@@ -796,8 +802,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
796
802
|
resolve(WoosmapGeofenceMessage.locationDeleted);
|
|
797
803
|
} else {
|
|
798
804
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
799
|
-
WoosmapGeofenceMessage.
|
|
800
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
805
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
806
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
801
807
|
}
|
|
802
808
|
}
|
|
803
809
|
|
|
@@ -812,8 +818,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
812
818
|
resolve(WoosmapGeofenceMessage.poiDeleted);
|
|
813
819
|
} else {
|
|
814
820
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
815
|
-
WoosmapGeofenceMessage.
|
|
816
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
821
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
822
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
817
823
|
}
|
|
818
824
|
}
|
|
819
825
|
|
|
@@ -845,8 +851,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
845
851
|
});
|
|
846
852
|
} else {
|
|
847
853
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
848
|
-
WoosmapGeofenceMessage.
|
|
849
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
854
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
855
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
850
856
|
}
|
|
851
857
|
}
|
|
852
858
|
|
|
@@ -865,8 +871,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
865
871
|
resolve(result);
|
|
866
872
|
} else {
|
|
867
873
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
868
|
-
WoosmapGeofenceMessage.
|
|
869
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
874
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
875
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
870
876
|
}
|
|
871
877
|
}
|
|
872
878
|
|
|
@@ -901,8 +907,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
901
907
|
|
|
902
908
|
} else {
|
|
903
909
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
904
|
-
WoosmapGeofenceMessage.
|
|
905
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
910
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
911
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
906
912
|
}
|
|
907
913
|
}
|
|
908
914
|
|
|
@@ -917,8 +923,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
917
923
|
resolve(WoosmapGeofenceMessage.locationDeleted);
|
|
918
924
|
} else {
|
|
919
925
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
920
|
-
WoosmapGeofenceMessage.
|
|
921
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
926
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
927
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
922
928
|
}
|
|
923
929
|
}
|
|
924
930
|
|
|
@@ -933,8 +939,8 @@ class PluginGeofencing: RCTEventEmitter {
|
|
|
933
939
|
resolve(WoosmapGeofenceMessage.refreshPOIStatus);
|
|
934
940
|
} else {
|
|
935
941
|
reject(WoosmapGeofenceMessage.plugin_errorDomain,
|
|
936
|
-
WoosmapGeofenceMessage.
|
|
937
|
-
showWoosmapError(WoosmapGeofenceMessage.
|
|
942
|
+
WoosmapGeofenceMessage.woosmapNotInitialized,
|
|
943
|
+
showWoosmapError(WoosmapGeofenceMessage.woosmapNotInitialized))
|
|
938
944
|
}
|
|
939
945
|
}
|
|
940
946
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import UIKit
|
|
9
9
|
|
|
10
10
|
internal struct WoosmapGeofenceMessage {
|
|
11
|
-
static let
|
|
11
|
+
static let woosmapNotInitialized = "Woosmap not initialized"
|
|
12
12
|
static let watchIDEmptyOrNull = "Watch id cannot be empty or null"
|
|
13
13
|
static let regionInfoEmptyOrNull = "regionInfo cannot be empty or null"
|
|
14
14
|
static let regionInfoDuplicateID = "regionid should be unique"
|
|
@@ -52,4 +52,5 @@ internal struct WoosmapGeofenceMessage {
|
|
|
52
52
|
static let invalid_profilesourcetype = "Provide valid source type type (local/external)"
|
|
53
53
|
static let invalid_profilefile = "Invalid profile file"
|
|
54
54
|
static let refreshPOIStatus = "OK"
|
|
55
|
+
static let woosmapProfilNotActivated = "Tracking has not yet started."
|
|
55
56
|
}
|
|
@@ -10,6 +10,20 @@ import UIKit
|
|
|
10
10
|
import CoreLocation
|
|
11
11
|
import WoosmapGeofencing
|
|
12
12
|
|
|
13
|
+
extension CLRegion {
|
|
14
|
+
var normalizeIdentifier: String {
|
|
15
|
+
get {
|
|
16
|
+
let idFormat = self.identifier
|
|
17
|
+
if(idFormat.contains("::")){
|
|
18
|
+
let seperated = idFormat.components(separatedBy: "@")
|
|
19
|
+
return seperated[1]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return idFormat
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
13
27
|
/// Geofence services
|
|
14
28
|
@objc(WoosmapGeofenceService) public class WoosmapGeofenceService: NSObject {
|
|
15
29
|
|
|
@@ -332,7 +346,14 @@ import WoosmapGeofencing
|
|
|
332
346
|
/// Remove region from system
|
|
333
347
|
/// - Parameter identifier: region id assined for region
|
|
334
348
|
public func removeRegion(identifier: String) {
|
|
335
|
-
|
|
349
|
+
if let regionInfo = getRegions(id: identifier){
|
|
350
|
+
if(regionInfo.type == "circle"){
|
|
351
|
+
WoosmapGeofenceManager.shared.locationService.removeRegion(identifier: regionInfo.identifier)
|
|
352
|
+
}
|
|
353
|
+
else{
|
|
354
|
+
RegionIsochrones.removeRegionIsochrone(id: regionInfo.identifier)
|
|
355
|
+
}
|
|
356
|
+
}
|
|
336
357
|
}
|
|
337
358
|
|
|
338
359
|
/// Get location information for geopoint from woos system
|
|
@@ -436,11 +457,11 @@ import WoosmapGeofencing
|
|
|
436
457
|
if let locationService = WoosmapGeofenceManager.shared.locationService{
|
|
437
458
|
if let customRegion = locationService.locationManager?.monitoredRegions{
|
|
438
459
|
customRegion.forEach { item in
|
|
439
|
-
if(locationService.getRegionType(identifier: item.
|
|
460
|
+
if(locationService.getRegionType(identifier: item.normalizeIdentifier) == RegionType.custom){
|
|
440
461
|
|
|
441
|
-
let customRegionItem = Region(latitude: 0, longitude: 0, radius: 0, dateCaptured: Date(), identifier: item.
|
|
462
|
+
let customRegionItem = Region(latitude: 0, longitude: 0, radius: 0, dateCaptured: Date(), identifier: item.normalizeIdentifier , didEnter: false, fromPositionDetection: false, eventName: "")
|
|
442
463
|
|
|
443
|
-
customRegionItem.identifier = item.
|
|
464
|
+
customRegionItem.identifier = item.normalizeIdentifier
|
|
444
465
|
if let circleRegion = item as? CLCircularRegion{
|
|
445
466
|
customRegionItem.latitude = circleRegion.center.latitude
|
|
446
467
|
customRegionItem.longitude = circleRegion.center.longitude
|
|
@@ -460,16 +481,21 @@ import WoosmapGeofencing
|
|
|
460
481
|
/// - Parameter id: region id
|
|
461
482
|
/// - Returns: Region
|
|
462
483
|
public func getRegions(id:String) -> Region? {
|
|
484
|
+
var regionId = id
|
|
463
485
|
if let locationService = WoosmapGeofenceManager.shared.locationService{
|
|
464
|
-
|
|
465
|
-
if(
|
|
486
|
+
var regionType = locationService.getRegionType(identifier: id)
|
|
487
|
+
if(regionType == .none){
|
|
488
|
+
regionId = "custom<id>\(regionId)"
|
|
489
|
+
}
|
|
490
|
+
regionType = locationService.getRegionType(identifier: regionId)
|
|
491
|
+
if( regionType == RegionType.custom){ //Custom region
|
|
466
492
|
if let customRegions = locationService.locationManager?.monitoredRegions{
|
|
467
493
|
if let watchRegion = customRegions.first(where: { item in
|
|
468
|
-
return item.
|
|
494
|
+
return item.normalizeIdentifier == regionId
|
|
469
495
|
}){
|
|
470
496
|
let customRegion = Region(latitude: 0, longitude: 0, radius: 0, dateCaptured: Date(), identifier: "-", didEnter: false, fromPositionDetection: false, eventName: "")
|
|
471
497
|
|
|
472
|
-
customRegion.identifier = watchRegion.
|
|
498
|
+
customRegion.identifier = watchRegion.normalizeIdentifier
|
|
473
499
|
if let circleRegion = watchRegion as? CLCircularRegion{
|
|
474
500
|
customRegion.latitude = circleRegion.center.latitude
|
|
475
501
|
customRegion.longitude = circleRegion.center.longitude
|
|
@@ -482,10 +508,10 @@ import WoosmapGeofencing
|
|
|
482
508
|
}
|
|
483
509
|
}
|
|
484
510
|
|
|
485
|
-
if let regions = DataRegion().readRegions(id: id){
|
|
511
|
+
if let regions = DataRegion().readRegions(id: id){ //POI
|
|
486
512
|
return regions
|
|
487
513
|
}
|
|
488
|
-
if let regions = DataRegion().readIsochroneRegions(id: id){
|
|
514
|
+
if let regions = DataRegion().readIsochroneRegions(id: id){ //Isochrone Zone
|
|
489
515
|
|
|
490
516
|
let customRegion = Region(latitude: 0, longitude: 0, radius: 0, dateCaptured: Date(), identifier: "-", didEnter: false, fromPositionDetection: false, eventName: "")
|
|
491
517
|
customRegion.identifier = regions.identifier ?? "-"
|
|
@@ -541,9 +567,13 @@ import WoosmapGeofencing
|
|
|
541
567
|
/// - Parameter id: region id
|
|
542
568
|
/// - Returns: deleted
|
|
543
569
|
public func deleteRegions(id:String) throws {
|
|
544
|
-
if
|
|
545
|
-
|
|
546
|
-
|
|
570
|
+
if let regionInfo = getRegions(id: id){
|
|
571
|
+
if(regionInfo.type == "circle"){
|
|
572
|
+
WoosmapGeofenceManager.shared.locationService.removeRegion(identifier: regionInfo.identifier)
|
|
573
|
+
}
|
|
574
|
+
else{
|
|
575
|
+
DataRegion().eraseRegions(id: regionInfo.identifier)
|
|
576
|
+
}
|
|
547
577
|
}
|
|
548
578
|
else{
|
|
549
579
|
throw WoosGeofenceError(WoosmapGeofenceMessage.regionid_notexist )
|
|
@@ -688,6 +718,13 @@ import WoosmapGeofencing
|
|
|
688
718
|
public func refreshPOI() {
|
|
689
719
|
WoosmapGeofenceManager.shared.refreshPOI()
|
|
690
720
|
}
|
|
721
|
+
|
|
722
|
+
public func isSearviceActive()-> Bool {
|
|
723
|
+
if(WoosmapGeofenceManager.shared.locationService.locationManager == nil){
|
|
724
|
+
return false
|
|
725
|
+
}
|
|
726
|
+
return true
|
|
727
|
+
}
|
|
691
728
|
}
|
|
692
729
|
|
|
693
730
|
/// WoosGeofense error
|
package/lib/commonjs/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _Location = _interopRequireDefault(require("./internal/Location"));
|
|
|
11
11
|
var _Region = _interopRequireDefault(require("./internal/Region"));
|
|
12
12
|
var _Poi = _interopRequireDefault(require("./internal/Poi"));
|
|
13
13
|
var _IndoorBeacon = _interopRequireDefault(require("./internal/IndoorBeacon"));
|
|
14
|
-
function _interopRequireDefault(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
const eventEmitter = new _reactNative.NativeEventEmitter(_nativeInterface.default);
|
|
16
16
|
let subscriptionsLocation = {};
|
|
17
17
|
let subscriptionsRegion = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_reactNativeUuid","_interopRequireDefault","_nativeInterface","_Location","_Region","_Poi","_IndoorBeacon","obj","__esModule","default","eventEmitter","NativeEventEmitter","PluginGeofencing","subscriptionsLocation","subscriptionsRegion","initialize","arg0","setWoosmapApiKey","apiKey","startTracking","trackingProfile","stopTracking","requestPermissions","background","requestBLEPermissions","Platform","OS","Promise","resolve","getPermissionsStatus","getBLEPermissionsStatus","watchLocation","success","error","watchID","uuid","v1","toString","successCallback","result","Location","jsonToObj","addListener","clearLocationWatch","removeAllListeners","clearAllLocationWatch","saved","remove","arg1","undefined","watchRegions","Region","clearRegionsWatch","clearAllRegionsWatch","setSFMCCredentials","setPoiRadius","radius","addRegion","region","getRegions","regionID","getAllRegions","then","formatted","forEach","item","push","catch","e","reject","getLocations","locationID","getAllLocations","getLocation","getPois","poiID","getAllPois","Poi","getPoi","removeRegions","removeAllRegions","removeRegion","removeLocations","removeAllLocations","removePois","removeAllPois","startCustomTracking","sourceType","source","getIndoorBeacons","venueID","ref","getAllIndoorBeacons","identifier","IndoorBeacon","removeIndoorBeacons","refreshPois","WoosmapGeofencing","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,IAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,aAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAmD,SAAAE,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAOnD,MAAMG,YAAY,GAAG,IAAIC,+BAAkB,CAACC,wBAAgB,CAAC;AAE7D,IAAIC,qBAA0B,GAAG,CAAC,CAAC;AACnC,IAAIC,mBAAwB,GAAG,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,UAAUA,CAACC,IAAU,EAAmB;EAC/C,IAAIA,IAAI,IAAI,IAAI,EAAE;IAChBA,IAAI,GAAG,CAAC,CAAC;EACX;EACA,OAAOJ,wBAAgB,CAACG,UAAU,CAACC,IAAI,CAAC;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,gBAAgBA,CAACC,MAAc,EAAmB;EACzD,OAAON,wBAAgB,CAACK,gBAAgB,CAAC,CAACC,MAAM,CAAC,CAAC;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,aAAaA,CAACC,eAAuB,EAAmB;EAC/D,OAAOR,wBAAgB,CAACO,aAAa,CAAC,CAACC,eAAe,CAAC,CAAC;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASC,YAAYA,CAAA,EAAoB;EACvC,OAAOT,wBAAgB,CAACS,YAAY,CAAC,CA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AOzC,OAAO,CAAC0C,MAAM,CAACD,CAAC,CAAC;IAC1B,CAAC,CAAC;EACN;AACF;;AAEA;AACA;AACA;AACA;AACA,SAAS2B,mBAAmBA,CAAA,EAAoB;EAC9C,OAAOnF,wBAAgB,CAACmF,mBAAmB,CAAC,CAAC;AAC/C;;AAEA;AACA;AACA;AACA;AACA,SAASC,WAAWA,CAAA,EAAoB;EACtC,OAAOpF,wBAAgB,CAACoF,WAAW,CAAC,CAAC;AACvC;AAYA,MAAMC,iBAAiB,GAAG;EACxBlF,UAAU;EACVE,gBAAgB;EAChBE,aAAa;EACbG,kBAAkB;EAClBE,qBAAqB;EACrBK,oBAAoB;EACpBC,uBAAuB;EACvBT,YAAY;EACZU,aAAa;EACbY,kBAAkB;EAClBO,YAAY;EACZE,iBAAiB;EACjBE,kBAAkB;EAClBC,YAAY;EACZE,SAAS;EACTE,UAAU;EACVoB,aAAa;EACbT,YAAY;EACZY,eAAe;EACfR,OAAO;EACPU,UAAU;EACVE,mBAAmB;EACnBG,gBAAgB;EAChBM,mBAAmB;EACnBC;AACF,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAA1F,OAAA,GAEawF,iBAAiB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeUuid","_interopRequireDefault","_nativeInterface","_Location","_Region","_Poi","_IndoorBeacon","e","__esModule","default","eventEmitter","NativeEventEmitter","PluginGeofencing","subscriptionsLocation","subscriptionsRegion","initialize","arg0","setWoosmapApiKey","apiKey","startTracking","trackingProfile","stopTracking","requestPermissions","background","requestBLEPermissions","Platform","OS","Promise","resolve","getPermissionsStatus","getBLEPermissionsStatus","watchLocation","success","error","watchID","uuid","v1","toString","successCallback","result","Location","jsonToObj","addListener","clearLocationWatch","removeAllListeners","clearAllLocationWatch","saved","remove","arg1","undefined","watchRegions","Region","clearRegionsWatch","clearAllRegionsWatch","setSFMCCredentials","setPoiRadius","radius","addRegion","region","getRegions","regionID","getAllRegions","then","formatted","forEach","item","push","catch","reject","getLocations","locationID","getAllLocations","getLocation","getPois","poiID","getAllPois","Poi","getPoi","removeRegions","removeAllRegions","removeRegion","removeLocations","removeAllLocations","removePois","removeAllPois","startCustomTracking","sourceType","source","getIndoorBeacons","venueID","ref","getAllIndoorBeacons","identifier","IndoorBeacon","removeIndoorBeacons","refreshPois","WoosmapGeofencing","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,IAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,aAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAmD,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOnD,MAAMG,YAAY,GAAG,IAAIC,+BAAkB,CAACC,wBAAgB,CAAC;AAE7D,IAAIC,qBAA0B,GAAG,CAAC,CAAC;AACnC,IAAIC,mBAAwB,GAAG,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,UAAUA,CAACC,IAAU,EAAmB;EAC/C,IAAIA,IAAI,IAAI,IAAI,EAAE;IAChBA,IAAI,GAAG,CAAC,CAAC;EACX;EACA,OAAOJ,wBAAgB,CAACG,UAAU,CAACC,IAAI,CAAC;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,gBAAgBA,CAACC,MAAc,EAAmB;EACzD,OAAON,wBAAgB,CAACK,gBAAgB,CAAC,CAACC,MAAM,CAAC,CAAC;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,aAAaA,CA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ACLF,SAAS,CAACG,IAAI,CAAC2B,qBAAY,CAACpD,SAAS,CAACwB,IAAI,CAAC,CAAC;QAC9C;MACF,CAAC,CAAC;MACF,OAAOtC,OAAO,CAACC,OAAO,CAACmC,SAAS,CAAC;IACnC,CAAC,CAAC,CACDI,KAAK,CAAE5D,CAAM,IAAK;MACjB,OAAOoB,OAAO,CAACyC,MAAM,CAAC7D,CAAC,CAAC;IAC1B,CAAC,CAAC;EACN;AACF;;AAEA;AACA;AACA;AACA;AACA,SAASuF,mBAAmBA,CAAA,EAAoB;EAC9C,OAAOlF,wBAAgB,CAACkF,mBAAmB,CAAC,CAAC;AAC/C;;AAEA;AACA;AACA;AACA;AACA,SAASC,WAAWA,CAAA,EAAoB;EACtC,OAAOnF,wBAAgB,CAACmF,WAAW,CAAC,CAAC;AACvC;AAYA,MAAMC,iBAAiB,GAAG;EACxBjF,UAAU;EACVE,gBAAgB;EAChBE,aAAa;EACbG,kBAAkB;EAClBE,qBAAqB;EACrBK,oBAAoB;EACpBC,uBAAuB;EACvBT,YAAY;EACZU,aAAa;EACbY,kBAAkB;EAClBO,YAAY;EACZE,iBAAiB;EACjBE,kBAAkB;EAClBC,YAAY;EACZE,SAAS;EACTE,UAAU;EACVmB,aAAa;EACbT,YAAY;EACZY,eAAe;EACfR,OAAO;EACPU,UAAU;EACVE,mBAAmB;EACnBG,gBAAgB;EAChBM,mBAAmB;EACnBC;AACF,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAzF,OAAA,GAEauF,iBAAiB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@woosmap/react-native-plugin-geofencing",
|
|
3
|
-
"version":"0.5.
|
|
3
|
+
"version":"0.5.1",
|
|
4
4
|
"description": "This react-native plugin extends the functionality offered by the Woosmap Geofencing Mobile SDKs. Find more about the Woosmap Geofencing SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|