transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
655 stars 277 forks source link

I captured continuous coming ENTER without being EXIT (Geofencing) #1363

Closed sumitjaind1987 closed 2 weeks ago

sumitjaind1987 commented 1 year ago

Your Environment

@Injectable({ providedIn: 'root', }) export class BackgroundgeoserviceService { EmployeeDeviceToken: string = ''; objESSEmployee: ESSEmployee;

constructor( public toastCtrl: ToastController, public Platform: Platform, public storage: StoreserviceService, ) { console.log('BackgroundgeoserviceService'); } async requestPermission() { BackgroundGeolocation.requestPermission(); } async ConfigGeolocatioandFencing(objESSEmployee: ESSEmployee) { if (this.Platform.is('cordova')) { let HTTPURl = 'https://xxxx.com/api/SwipeDetails/LocationService'; if (objESSEmployee.CloudAccountName.toLowerCase() === 'abcd') { HTTPURl = 'https://xzzz.com/api/SwipeDetails/LocationService'; } BackgroundGeolocation.getGeofences().then(geofences => { this.ShowMessage('[getGeofences] : ' + geofences.length); }) BackgroundGeolocation.ready( { desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH, distanceFilter: 0, locationUpdateInterval: 15 * 1000, geofenceModeHighAccuracy: true, locationAuthorizationRequest: 'Always', allowIdenticalLocations: false, backgroundPermissionRationale: { title: "Allow access to this device's location in the background?", message: "In order to allow tracking, please enable 'Allow all the time permission.", positiveAction: 'Change to Allow all the time', negativeAction: 'Cancel', }, stopTimeout: 1, // Application config logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE, stopOnTerminate: false, // <-- Allow the background-service to continue tracking when app terminated. startOnBoot: true, // <-- Auto start tracking when device is powered-up. // HTTP / SQLite config url: HTTPURl, batchSync: false, // <-- Set true to sync locations to server in a single HTTP request. autoSync: true, headers: { // <-- Optional HTTP headers 'Content-Type': 'application/json', }, extras: { EmployeeId: objESSEmployee.EmployeeId.toString(), MobileIMEINumber: objESSEmployee.EmployeeDeviceToken, UserIMEINumber: objESSEmployee.EmployeeDeviceToken, IsEnableAutoGeoFence: objESSEmployee.IsEnableAutoGeoFence, ApiAccountName: objESSEmployee.ApiAccountName, TimeStamp: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'), Name: objESSEmployee.EmployeeName, MobilePlatform: 'Android', App: 'SOSLight' }, }, (state) => { this.ShowMessage( '- BackgroundGeolocation is configured and ready: '+ state.enabled ); if (!state.enabled) { if (objESSEmployee.IsSubscribeAutoLocationFetch && objESSEmployee.IsEnableAutoLocationFetch) { BackgroundGeolocation.start(function () { //BackgroundGeolocation.startSchedule(); this.storage.set('IsAutoLocationFetchStarted', true).then(() => { console.log('- Start success'); }); }); } if (objESSEmployee.IsSubscribeAutoLocationFetch && objESSEmployee.IsEnableAutoGeoFence){ //BackgroundGeolocation.removeGeofences(); this.ConfigGeofencing(objESSEmployee); } this.ShowMessage( '- BackgroundGeolocation is configured and ready: ' + state.enabled ); } } ).catch((error) => { this.ShowMessage('[Background state] FAILURE: ' + error); }); } }

async ConfigGeofencing(objESSEmployee: ESSEmployee) { await BackgroundGeolocation.addGeofence({ identifier: 'Office', radius: objESSEmployee.Radius, latitude: objESSEmployee.GeoFenceLattitude, longitude: objESSEmployee.GeoFenceLongitude, notifyOnEntry: true, notifyOnExit: true, notifyOnDwell: true, extras: { radius: objESSEmployee.Radius, center: { latitude: objESSEmployee.GeoFenceLattitude, longitude: objESSEmployee.GeoFenceLongitude, }, }, }) .then((success) => { console.log('[addGeofence] success'); this.storage.set('IsAutoGeofenceFetchStarted', true).then(() => { BackgroundGeolocation.startGeofences(); this.ShowMessage('Geofence Service Started !'); }); }) .catch((error) => { console.log('[addGeofence] FAILURE: ' + error); }); } async ShowMessage(message) { const toast = await this.toastCtrl.create({ message, duration: 3000, }); toast.present(); } }

Expected Behavior

plugin hitting ENTER continuously without being EXIT (Geofencing)

Actual Behavior

once user enter in radius its hitting ENTER , after that it is continuously hitting ENTER even user is idle

Steps to Reproduce

1. 2. 3. 4.

Context

whenever my user comes in defined radius it should ENTER (IN Punch) and whenever out should come EXIT (Out Punch) .

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE {8/27/2022 10:26:42 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "aa2753ac-045d-41c6-aa5e-4f3c001f7fe0", "timestamp": "2022-08-27T04:56:42Z", "odometer": 382751, "coords": { "latitude": 12.9752074, "longitude": 77.566526, "accuracy": 20.4, "speed": 0.89, "speed_accuracy": 3.04, "heading": 175, "heading_accuracy": 88.48, "altitude": 812.8, "altitude_accuracy": 5.6 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office", "action": "ENTER", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:26:43 AM}--><---{ "location": { "event": "motionchange", "is_moving": false, "uuid": "d94921d0-6e49-4ec2-946c-a5b40aacdd78", "timestamp": "2022-08-27T04:56:42Z", "odometer": 382887.3, "coords": { "latitude": 12.9752074, "longitude": 77.566526, "accuracy": 20.4, "speed": 0.89, "speed_accuracy": 3.04, "heading": 175, "heading_accuracy": 88.48, "altitude": 812.8, "altitude_accuracy": 5.6 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:26:43 AM}--><---Called LocationService {8/27/2022 10:26:43 AM}--><---{ "location": { "event": "providerchange", "provider": { "network": false, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "0d0a664f-3055-469b-ba28-2e94a87cdc56", "timestamp": "2022-08-27T04:56:42Z", "odometer": 382887.3, "coords": { "latitude": 12.9752074, "longitude": 77.566526, "accuracy": 20.4, "speed": 0.89, "speed_accuracy": 3.04, "heading": 175, "heading_accuracy": 88.48, "altitude": 812.8, "altitude_accuracy": 5.6 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:26:43 AM}--><---{ "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "8d17ce06-f030-475c-b3be-4605c8800183", "timestamp": "2022-08-27T04:56:41.98Z", "odometer": 382887.3, "coords": { "latitude": 12.9752074, "longitude": 77.566526, "accuracy": 20.4, "speed": 0.89, "speed_accuracy": 3.04, "heading": 175, "heading_accuracy": 88.48, "altitude": 812.8, "altitude_accuracy": 5.6 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:26:55 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "1f8a40d9-6d2e-42c5-8034-a7dc600c2e9a", "timestamp": "2022-08-27T04:56:42Z", "odometer": 382887.3, "coords": { "latitude": 12.9752074, "longitude": 77.566526, "accuracy": 20.4, "speed": 0.89, "speed_accuracy": 3.04, "heading": 175, "heading_accuracy": 88.48, "altitude": 812.8, "altitude_accuracy": 5.6 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office", "action": "ENTER", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:26:59 AM}--><---{ "location": { "event": "providerchange", "provider": { "network": false, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "6fadf19e-7e4a-4fb5-b107-d46fb7d1d416", "timestamp": "2022-08-27T04:56:53.448Z", "odometer": 382887.3, "coords": { "latitude": 12.9749134, "longitude": 77.5661458, "accuracy": 11.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:27:00 AM}--><---{ "location": { "event": "motionchange", "is_moving": false, "uuid": "717071e0-9969-458a-83b4-30010c8ad895", "timestamp": "2022-08-27T04:56:53.448Z", "odometer": 382939.8, "coords": { "latitude": 12.9749134, "longitude": 77.5661458, "accuracy": 11.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:27:01 AM}--><---Called LocationService {8/27/2022 10:27:01 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "561d7533-a7b2-4c7a-b6e5-2d6111fc6c1c", "timestamp": "2022-08-27T04:56:53.448Z", "odometer": 382939.8, "coords": { "latitude": 12.9749134, "longitude": 77.5661458, "accuracy": 11.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office", "action": "ENTER", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:27:01 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "3dbea666-89b5-4b33-b4c0-0410e096a2da", "timestamp": "2022-08-27T04:56:53.448Z", "odometer": 382939.8, "coords": { "latitude": 12.9749134, "longitude": 77.5661458, "accuracy": 11.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office", "action": "DWELL", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:27:12 AM}--><---{ "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "9acd7feb-fc28-4213-b2ac-b25cfbbfe62d", "timestamp": "2022-08-27T04:57:04.637Z", "odometer": 382939.8, "coords": { "latitude": 12.9749134, "longitude": 77.5661458, "accuracy": 11.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:27:12 AM}--><---Called LocationService {8/27/2022 10:27:12 AM}--><---{ "location": { "event": "motionchange", "is_moving": false, "uuid": "ddfd054f-fe33-4cd0-8e67-db1f7e415b39", "timestamp": "2022-08-27T04:57:09.245Z", "odometer": 382939.8, "coords": { "latitude": 12.9749156, "longitude": 77.5661442, "accuracy": 12.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 1.9 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:27:12 AM}--><---Called LocationService {8/27/2022 10:27:12 AM}--><---{ "location": { "event": "providerchange", "provider": { "network": false, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "225064ab-85fd-4c5a-aa88-4da9af33f886", "timestamp": "2022-08-27T04:57:09.245Z", "odometer": 382939.8, "coords": { "latitude": 12.9749156, "longitude": 77.5661442, "accuracy": 12.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 1.9 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:27:13 AM}--><---Called LocationService {8/27/2022 10:27:13 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "f015fbd5-d46b-48ef-9417-c19f58f93d10", "timestamp": "2022-08-27T04:57:09.245Z", "odometer": 382939.8, "coords": { "latitude": 12.9749156, "longitude": 77.5661442, "accuracy": 12.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 1.9 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office", "action": "ENTER", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:27:14 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "006c5c58-8a43-4616-b1a6-babf56054abe", "timestamp": "2022-08-27T04:57:09.245Z", "odometer": 382939.8, "coords": { "latitude": 12.9749156, "longitude": 77.5661442, "accuracy": 12.6, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 1.9 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office", "action": "DWELL", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:44:14 AM}--><---{ "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "7b1d0bed-4627-4fe8-b2b6-13ec9b9839a7", "timestamp": "2022-08-27T05:08:38.041Z", "odometer": 382939.8, "coords": { "latitude": 12.9749141, "longitude": 77.5661455, "accuracy": 12.8, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.2 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.87 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:44:15 AM}--><---{ "location": { "event": "providerchange", "provider": { "network": true, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "652dd127-7d21-4471-aa6f-25778a5f6ce5", "timestamp": "2022-08-27T05:14:09.753Z", "odometer": 382939.8, "coords": { "latitude": 12.9749068, "longitude": 77.5661365, "accuracy": 12.9, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.86 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:44:15 AM}--><---{ "location": { "event": "motionchange", "is_moving": false, "uuid": "3f7120e5-ce98-4767-889e-0c4100a5294e", "timestamp": "2022-08-27T05:14:09.753Z", "odometer": 382939.8, "coords": { "latitude": 12.9749068, "longitude": 77.5661365, "accuracy": 12.9, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.86 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:44:15 AM}--><---Called LocationService {8/27/2022 10:44:15 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "0c4bf5eb-2209-4ca3-a285-28edd4c7f6c6", "timestamp": "2022-08-27T05:14:09.753Z", "odometer": 382939.8, "coords": { "latitude": 12.9749068, "longitude": 77.5661365, "accuracy": 12.9, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.86 }, "geofence": { "identifier": "Office", "action": "ENTER", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:44:32 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "6088e596-c706-4a39-a16a-cd9c787bc89f", "timestamp": "2022-08-27T05:14:26.444Z", "odometer": 382939.8, "coords": { "latitude": 12.974913, "longitude": 77.5661483, "accuracy": 13, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.3 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.86 }, "geofence": { "identifier": "Office", "action": "ENTER", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/27/2022 10:44:34 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "c53ea876-b333-463c-a6fa-1315d2c60680", "timestamp": "2022-08-27T05:14:29.721Z", "odometer": 382939.8, "coords": { "latitude": 12.974913, "longitude": 77.5661483, "accuracy": 13, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.3, "altitude_accuracy": 2.3 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.86 }, "geofence": { "identifier": "Office", "action": "DWELL", "extras": { "radius": 200, "route_id": 1234, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "UserIMEINumber": "d20edf2e-0a7b-483d-a05b-fc8652ddebde", "IsEnableAutoGeoFence": true, "ApiAccountName": "companyname", "TimeStamp": "2022-08-16 15:14:23", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } }
christocracy commented 1 year ago

If you're re-adding geofences with each launch of your app, then you'll get a geofence ENTER event every time your app is re-launched.

christocracy commented 1 year ago

Are you observing the plugin logs in $ adb logcat *:S TSLocationManager:V?

sumitjaind1987 commented 1 year ago

its not re-adding i have given "identifier: 'Office - ' + crypto.randomUUID()," , i am getting same identifier whenever ENTER comes if it read then my identifier also changes. { "location": { "event": "geofence", "is_moving": true, "uuid": "0d19b632-969b-40f3-99c6-a98fbbe4faf0", "timestamp": "2022-08-30T05:01:13Z", "odometer": 12229, "coords": { "latitude": 12.9755172, "longitude": 77.5653819, "accuracy": 41, "speed": 1.09, "speed_accuracy": 1.29, "heading": 160.26, "heading_accuracy": 70.63, "altitude": 813, "altitude_accuracy": 10.5 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "ENTER", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "3f79106d-e397-4e49-a413-e77320a06ab9", "timestamp": "2022-08-30T05:03:44Z", "odometer": 12300.3, "coords": { "latitude": 12.975109, "longitude": 77.5659949, "accuracy": 9.6, "speed": 0, "speed_accuracy": 0.67, "heading": -1, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "geofence", "is_moving": true, "uuid": "3a1b4488-80fa-4511-aa90-f8667a171a9e", "timestamp": "2022-08-30T05:03:44Z", "odometer": 12300.3, "coords": { "latitude": 12.975109, "longitude": 77.5659949, "accuracy": 9.6, "speed": 0, "speed_accuracy": 0.67, "heading": -1, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "DWELL", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "12d49290-873c-4b3d-91df-fa1cce44f29b", "timestamp": "2022-08-30T05:03:44Z", "odometer": 12300.3, "coords": { "latitude": 12.975109, "longitude": 77.5659949, "accuracy": 9.6, "speed": 0, "speed_accuracy": 0.67, "heading": -1, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "dfc33a13-a8af-42d7-b302-5394b315c5fb", "timestamp": "2022-08-30T05:03:45Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "1d3b6119-7017-4dee-b591-b95635b7a7be", "timestamp": "2022-08-30T05:03:59.277Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "22b68b80-1f23-47ad-a971-4aebea13f95b", "timestamp": "2022-08-30T05:04:30.645Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "495fba0f-b080-4b78-b9f9-bcd69a85bc94", "timestamp": "2022-08-30T05:05:01Z", "odometer": 2877839.8, "coords": { "latitude": 22.6065399, "longitude": 88.3159452, "accuracy": 2.6, "speed": 0.01, "speed_accuracy": 2.3, "heading": 269.25, "heading_accuracy": 179.9, "altitude": 5.3, "altitude_accuracy": 9.2 }, "activity": { "type": "in_vehicle", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.83 }, "extras": { "EmployeeId": "1108", "MobileIMEINumber": "unknown", "UserIMEINumber": "unknown", "IsEnableAutoGeoFence": false, "ApiAccountName": "pascal", "TimeStamp": "2022-05-23 12:51:10", "Name": "DEBJYOTI BHAUMIK", "MobilePlatform": "Android" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "af2f1b5a-8679-4831-9a91-0a4c9e9f428a", "timestamp": "2022-08-30T05:06:00.346Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "598f2372-2962-4e2e-bc7b-ff78478a6c9e", "timestamp": "2022-08-30T05:06:05.473Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "3b9a63da-a121-4651-9235-8f92c3bf3409", "timestamp": "2022-08-30T05:10:21.855Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "2d302022-a342-4a23-97ea-ea9adc1b5e72", "timestamp": "2022-08-30T05:10:23.229Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.9 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "bd350fdd-6168-4352-868b-feef7d055316", "timestamp": "2022-08-30T05:10:48.048Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "geofence", "is_moving": true, "uuid": "67ad9d55-0324-4e8e-8ec7-d6e661d06547", "timestamp": "2022-08-30T05:03:44Z", "odometer": 12300.3, "coords": { "latitude": 12.975109, "longitude": 77.5659949, "accuracy": 9.6, "speed": 0, "speed_accuracy": 0.67, "heading": -1, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "ENTER", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": true, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "eb23f747-29d3-4de4-95ec-04abe24656ce", "timestamp": "2022-08-30T05:10:51.592Z", "odometer": 12300.3, "coords": { "latitude": 12.9751415, "longitude": 77.5659982, "accuracy": 9.1, "speed": 0.72, "speed_accuracy": 0.13, "heading": 5.73, "heading_accuracy": -1, "altitude": 813, "altitude_accuracy": 7.4 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": true, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "532e201e-007a-4e2e-92b4-2951090a58fa", "timestamp": "2022-08-30T05:10:53.759Z", "odometer": 12324.6, "coords": { "latitude": 12.9749633, "longitude": 77.5661623, "accuracy": 20, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.8, "altitude_accuracy": 1.1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "geofence", "is_moving": true, "uuid": "a493a995-e3fb-45cf-b453-452e553b66f2", "timestamp": "2022-08-30T05:10:53.759Z", "odometer": 12324.6, "coords": { "latitude": 12.9749633, "longitude": 77.5661623, "accuracy": 20, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 816.8, "altitude_accuracy": 1.1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "ENTER", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "34711476-b83c-4af6-9d4a-b994cf7034b9", "timestamp": "2022-08-30T05:10:57.664Z", "odometer": 12324.6, "coords": { "latitude": 12.9749524, "longitude": 77.5661675, "accuracy": 17.2, "speed": 0.22, "speed_accuracy": -1, "heading": 155.11, "heading_accuracy": -1, "altitude": 816.8, "altitude_accuracy": 1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "941fb35d-6c74-4c59-b3ce-57bc77d57093", "timestamp": "2022-08-30T05:11:02Z", "odometer": 12324.6, "coords": { "latitude": 12.9749905, "longitude": 77.5661705, "accuracy": 15, "speed": 2.52, "speed_accuracy": -1, "heading": 4.7, "heading_accuracy": -1, "altitude": 816.8, "altitude_accuracy": 1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "0fe6dbbd-9900-48e1-8dfe-a9c8dac48f04", "timestamp": "2022-08-30T05:11:12.709Z", "odometer": 12324.6, "coords": { "latitude": 12.9750566, "longitude": 77.5661705, "accuracy": 14.3, "speed": 1.76, "speed_accuracy": -1, "heading": 2.74, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "geofence", "is_moving": true, "uuid": "9ad2160d-0c5f-4800-aec4-ea59bd1debfb", "timestamp": "2022-08-30T05:11:12.709Z", "odometer": 12324.6, "coords": { "latitude": 12.9750566, "longitude": 77.5661705, "accuracy": 14.3, "speed": 1.76, "speed_accuracy": -1, "heading": 2.74, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "DWELL", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "673eb12d-b705-4dc5-820e-6925c631b2a4", "timestamp": "2022-08-30T05:11:16Z", "odometer": 12324.6, "coords": { "latitude": 12.9750093, "longitude": 77.5662059, "accuracy": 14.2, "speed": 2.77, "speed_accuracy": -1, "heading": 87.26, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "8031ce0f-f037-47f5-8894-e592b35f0b1c", "timestamp": "2022-08-30T05:11:27.728Z", "odometer": 12324.6, "coords": { "latitude": 12.9749868, "longitude": 77.566207, "accuracy": 11.8, "speed": 0.86, "speed_accuracy": -1, "heading": 99.27, "heading_accuracy": -1, "altitude": 817.4, "altitude_accuracy": 1.2 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "1e01d17b-68fe-4cdb-938e-496f5bec6632", "timestamp": "2022-08-30T05:11:39Z", "odometer": 12324.6, "coords": { "latitude": 12.9749391, "longitude": 77.5662603, "accuracy": 36.4, "speed": 1.65, "speed_accuracy": 4.46, "heading": 129.91, "heading_accuracy": 62.4, "altitude": 817.4, "altitude_accuracy": 1.3 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "858c54bc-cfbe-4c8c-8594-5bdfde744991", "timestamp": "2022-08-30T05:11:43.024Z", "odometer": 12324.6, "coords": { "latitude": 12.9749443, "longitude": 77.5661965, "accuracy": 25.6, "speed": 2.29, "speed_accuracy": -1, "heading": 130.48, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "5fb84b98-8f3f-49b0-a253-087529865ce9", "timestamp": "2022-08-30T05:11:46Z", "odometer": 12324.6, "coords": { "latitude": 12.9749312, "longitude": 77.5662074, "accuracy": 14.5, "speed": 1.84, "speed_accuracy": -1, "heading": 125.1, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "walking", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "8dc92b5e-1f1a-4731-9323-62ba9bc71866", "timestamp": "2022-08-30T05:12:03Z", "odometer": 12324.6, "coords": { "latitude": 12.9749312, "longitude": 77.5662061, "accuracy": 24.7, "speed": 2.03, "speed_accuracy": -1, "heading": 308, "heading_accuracy": -1, "altitude": 816.8, "altitude_accuracy": 1.3 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "is_moving": true, "uuid": "54311451-0c49-4262-80e1-e1b9f1ad0935", "timestamp": "2022-08-30T05:12:17Z", "odometer": 12324.6, "coords": { "latitude": 12.9749999, "longitude": 77.5660989, "accuracy": 16.1, "speed": 0.96, "speed_accuracy": 2.1, "heading": 194.7, "heading_accuracy": 76.98, "altitude": 816.8, "altitude_accuracy": 1.5 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": true, "uuid": "193d0e5f-00d8-4be6-8d12-af368fa39f25", "timestamp": "2022-08-30T05:12:23.31Z", "odometer": 12324.6, "coords": { "latitude": 12.9749999, "longitude": 77.5660989, "accuracy": 16.1, "speed": 0.96, "speed_accuracy": 2.1, "heading": 194.7, "heading_accuracy": 76.98, "altitude": 816.8, "altitude_accuracy": 1.5 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": true, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "62babb86-56ef-4c66-9a4e-460d29eddaf6", "timestamp": "2022-08-30T05:13:59Z", "odometer": 12324.6, "coords": { "latitude": 12.9748654, "longitude": 77.5666753, "accuracy": 19.3, "speed": 2.44, "speed_accuracy": 1.82, "heading": 276, "heading_accuracy": 39.76, "altitude": 817.7, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "motionchange", "is_moving": false, "uuid": "84e5a74f-b047-4887-8469-aff23dea97d9", "timestamp": "2022-08-30T05:13:59Z", "odometer": 12381.3, "coords": { "latitude": 12.9748654, "longitude": 77.5666753, "accuracy": 19.3, "speed": 2.44, "speed_accuracy": 1.82, "heading": 276, "heading_accuracy": 39.76, "altitude": 817.7, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "geofence", "is_moving": false, "uuid": "a69c77ba-c080-4365-85ca-1fe411b40a5c", "timestamp": "2022-08-30T05:13:59Z", "odometer": 12381.3, "coords": { "latitude": 12.9748654, "longitude": 77.5666753, "accuracy": 19.3, "speed": 2.44, "speed_accuracy": 1.82, "heading": 276, "heading_accuracy": 39.76, "altitude": 817.7, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.89 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "ENTER", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/30/2022 10:53:24 AM}--><---{ "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "373a8617-0077-4cd8-a470-8e8d69d2ab22", "timestamp": "2022-08-30T05:16:03.786Z", "odometer": 12381.3, "coords": { "latitude": 12.9748654, "longitude": 77.5666753, "accuracy": 19.3, "speed": 2.44, "speed_accuracy": 1.82, "heading": 276, "heading_accuracy": 39.76, "altitude": 817.7, "altitude_accuracy": 2.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": true, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "a67942d4-f2fb-41b3-aa28-94599d0deb3d", "timestamp": "2022-08-30T05:23:20.948Z", "odometer": 12381.3, "coords": { "latitude": 12.9749795, "longitude": 77.5661619, "accuracy": 20, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "motionchange", "is_moving": false, "uuid": "8dc97902-5857-4794-adc5-87c9dbff98ad", "timestamp": "2022-08-30T05:23:20.948Z", "odometer": 12438.4, "coords": { "latitude": 12.9749795, "longitude": 77.5661619, "accuracy": 20, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "geofence", "is_moving": false, "uuid": "b7264264-eb0d-48d9-b354-b74a08de3974", "timestamp": "2022-08-30T05:23:20.948Z", "odometer": 12438.4, "coords": { "latitude": 12.9749795, "longitude": 77.5661619, "accuracy": 20, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "DWELL", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/30/2022 10:53:27 AM}--><---Called LocationService {8/30/2022 10:53:27 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "dd046f1b-b5f7-46b0-a61a-22cf3293ee1a", "timestamp": "2022-08-30T05:23:20.948Z", "odometer": 12438.4, "coords": { "latitude": 12.9749795, "longitude": 77.5661619, "accuracy": 20, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "ENTER", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "providerchange", "provider": { "network": false, "gps": false, "enabled": false, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "6d581bcd-2d5b-4ee3-977f-b15ddb6b6881", "timestamp": "2022-08-30T05:24:27.895Z", "odometer": 12438.4, "coords": { "latitude": 12.9749795, "longitude": 77.5661619, "accuracy": 20, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.7, "altitude_accuracy": 1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } { "location": { "event": "motionchange", "is_moving": false, "uuid": "18fbc29e-03ee-43ee-84de-b42c9b0b689e", "timestamp": "2022-08-30T05:26:48.325Z", "odometer": 12438.4, "coords": { "latitude": 12.9749539, "longitude": 77.5661677, "accuracy": 13.5, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.3, "altitude_accuracy": 1.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } }

{ "location": { "event": "providerchange", "provider": { "network": true, "gps": true, "enabled": true, "status": 3, "accuracyAuthorization": 0, "airplane": false }, "is_moving": false, "uuid": "56fdb122-3286-4e01-99cd-f7ea6ebb3e69", "timestamp": "2022-08-30T05:26:48.325Z", "odometer": 12438.4, "coords": { "latitude": 12.9749539, "longitude": 77.5661677, "accuracy": 13.5, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.3, "altitude_accuracy": 1.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } } {8/30/2022 10:56:52 AM}--><---Called LocationService {8/30/2022 10:56:52 AM}--><---{ "location": { "event": "geofence", "is_moving": false, "uuid": "b7e4f675-1ebf-42a6-8cb3-d3e0ddee90a9", "timestamp": "2022-08-30T05:26:48.325Z", "odometer": 12438.4, "coords": { "latitude": 12.9749539, "longitude": 77.5661677, "accuracy": 13.5, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.3, "altitude_accuracy": 1.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "DWELL", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } }

{ "location": { "event": "geofence", "is_moving": false, "uuid": "78e99059-e64f-4710-b15b-a658ec8f78e3", "timestamp": "2022-08-30T05:26:48.325Z", "odometer": 12438.4, "coords": { "latitude": 12.9749539, "longitude": 77.5661677, "accuracy": 13.5, "speed": -1, "speed_accuracy": -1, "heading": -1, "heading_accuracy": -1, "altitude": 817.3, "altitude_accuracy": 1.1 }, "activity": { "type": "still", "confidence": 100 }, "battery": { "is_charging": false, "level": 0.88 }, "geofence": { "identifier": "Office - c8f9b607-4ed6-4abc-ae17-9f5a4f25161d", "action": "ENTER", "extras": { "radius": 250, "center": { "latitude": "12.9742361", "longitude": "77.56668839999999" } } }, "extras": { "EmployeeId": "5125", "MobileIMEINumber": null, "UserIMEINumber": null, "IsEnableAutoGeoFence": true, "ApiAccountName": "smart365g", "TimeStamp": "2022-08-29 14:20:33", "Name": "Ritesh singh", "MobilePlatform": "Android", "App": "SOSLight" } } }

christocracy commented 1 year ago

Your logs show a bunch of providerchange events. When location-servivces are disabled, the plugin re-registers geofences. If the user is currently within a particular geofence, the ENTER event is fired once again.

"event": "providerchange",
    "provider": {
      "network": false,
      "gps": false,
      "enabled": false,   // <-----------------------------
      "status": 3,
      "accuracyAuthorization": 0,
      "airplane": false
    },
sumitjaind1987 commented 1 year ago

When does this provider change event call?

christocracy commented 1 year ago

When the nature of the device’s location providers changes. Eg:

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 14 days since being marked as stale.