Closed jeya-duraisamy closed 4 years ago
This is a really bad idea. I have no idea what would happen on an iOS device booted in the background, since that's going to attempt to launch the mail app. On a sim, it's going to raise an exception immediately since the mail client isn't configured, which you'll catch((error)
immediately. Don't do that. Use a UI button to execute emailLog
instead of interrupting the plugin's crucial launch cycle.
this.platform.ready().then(() => {
BackgroundGeolocation.emailLog('xyz@abc.com').then((success) => {
console.log('[emailLog] success');
}).catch((error) => {
console.log('[emailLog] FAILURE: ', error);
});
@christocracy I will be changing to get it from click of a button. I will post the updated log after changing it. But will that change the outcome though? Because I had the same issue even before adding emailLog.
If it works in the sim, the problem is your device (is wifi enabled?) or your environment (obstructions; mountains/building; cell towers).
@christocracy Yes, wifi is enabled on the device and it definitely has internet connection in the route I drove now. Included here is the new log after moving emailLog to be trigger by user action. App was killed at 16:53 and I opened it at 17:06, there was no location update between this time although I drove for 13 miles.
Clone the SampleApp repo and build it to your device. Do not look at the code, just clone and install on device. Use the "Advanced App" and tell me the username you select so I can observe your results.
@christocracy I will do this in couple of days and give you the username.
@christocracy User name is jeya-duraisamy5. I cloned the demo app before this also, killed the app and it got enabled after I drove for little while. Thinking that this may be an issue with the new version of Ionic & Angular, I created a helloworld app with most recent Ionic and it worked on that also. So there must be some dependency / conflict with what is in our project. Below is the package.json for our project. Is there anything in this that could cause a problem?
{
"name": "myApp",
"version": "1.2.3",
"author": "Author",
"homepage": "https://www.google.com",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^7.2.13",
"@angular/common": "^7.2.13",
"@angular/core": "^7.2.13",
"@angular/forms": "^7.2.13",
"@angular/http": "^7.2.13",
"@angular/platform-browser": "^7.2.13",
"@angular/platform-browser-dynamic": "^7.2.13",
"@angular/router": "^7.2.13",
"@fortawesome/angular-fontawesome": "^0.3.0",
"@fortawesome/fontawesome-svg-core": "^1.2.17",
"@fortawesome/free-solid-svg-icons": "^5.8.1",
"@ionic-native/camera": "^5.5.0",
"@ionic-native/core": "5.1.0",
"@ionic-native/keyboard": "^5.5.0",
"@ionic-native/photo-viewer": "^5.5.0",
"@ionic-native/screen-orientation": "^5.7.0",
"@ionic-native/sim": "^5.5.0",
"@ionic-native/splash-screen": "5.1.0",
"@ionic-native/status-bar": "5.1.0",
"@ionic/angular": "4.0.0-beta.19",
"@ionic/storage": "^2.2.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"angular2-signaturepad": "^2.8.0",
"cordova-android": "8.0.0",
"cordova-background-geolocation-lt": "3.2.0",
"cordova-ios": "5.0.1",
"cordova-plugin-background-fetch": "^5.5.0",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-cocoalumberjack": "0.0.4",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^2.4.1",
"cordova-plugin-screen-orientation": "3.0.1",
"cordova-plugin-sim": "^1.3.3",
"cordova-plugin-splashscreen": "^5.0.3",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-whitelist": "^1.3.4",
"cordova-sqlite-storage": "^3.2.0",
"core-js": "^2.6.9",
"es6-promise-plugin": "^4.2.2",
"hammerjs": "^2.0.8",
"ionic": "^4.12.0",
"rxjs": "~6.3.3",
"zone.js": "^0.8.29"
},
"devDependencies": {
"@angular-devkit/architect": "^0.10.0",
"@angular-devkit/build-angular": "^0.13.8",
"@angular-devkit/core": "^7.3.8",
"@angular-devkit/schematics": "^7.3.8",
"@angular/cli": "^7.3.8",
"@angular/compiler": "^7.2.13",
"@angular/compiler-cli": "^7.2.13",
"@angular/language-service": "^7.2.13",
"@ionic/angular-toolkit": "^1.5.1",
"@types/jasmine": "^2.8.16",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^10.14.5",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^2.0.6",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.2",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-sqlite-storage": {},
"cordova-plugin-sim": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-camera": {},
"cordova-plugin-screen-orientation": {},
"cordova-background-geolocation-lt": {
"GOOGLE_API_VERSION": "16.+",
"APPCOMPAT_VERSION": "28.+",
"OKHTTP_VERSION": "3.12.+",
"EVENTBUS_VERSION": "3.0.0",
"BACKGROUND_MODE_LOCATION": "<string>location</string>"
}
},
"platforms": [
"ios",
"android"
]
}
}
@christocracy I'm also facing same issue. Your Sample App is with ionic 3 and it works good, but tracking not working (iOS) when app is closed in ionic 4 in my app.
The plugin doesn't know or care if you use Ionic 3, 4 or even if you don't use Ionic at all. Ionic version has no effect on the behaviour of the plugin.
See wiki Debugging.
@christocracy I checked the log in Xcode. When app is terminated TSBackgroundFetch stop Updating Location
activityRecognitionInterval = 10000;
activityType = 1;
autoSync = 1;
autoSyncThreshold = 0;
batchSync = 0;
debug = 1;
desiredAccuracy = "-1";
desiredOdometerAccuracy = 100;
didLaunchInBackground = 0;
disableElasticity = 0;
disableLocationAuthorizationAlert = 0;
disableMotionActivityUpdates = 0;
disableStopDetection = 0;
distanceFilter = 10;
elasticityMultiplier = 1;
enableTimestampMeta = 0;
enabled = 1;
extras = {
};
geofenceInitialTriggerEntry = 1;
geofenceProximityRadius = 1000;
geofenceTemplate = "";
headers = {
};
heartbeatInterval = 60;
httpRootProperty = location;
httpTimeout = 60000;
iOSHasWarnedLocationServicesOff = 0;
isFirstBoot = 0;
isMoving = 1;
lastLocationAuthorizationStatus = 3;
locationAuthorizationAlert = {
cancelButton = Cancel;
instructions = "To use background location, you must enable '{locationAuthor
βΉοΈ-[TSLocationManager init] {
activityRecognitionInterval = 10000;
activityType = 1;
autoSync = 1;
autoSyncThreshold = 0;
batchSync = 0;
debug = 1;
desiredAccuracy = "-1";
desiredOdometerAccuracy = 100;
didLaunchInBackground = 0;
disableElasticity = 0;
disableLocationAuthorizationAlert = 0;
disableMotionActivityUpdates = 0;
disableStopDetection = 0;
distanceFilter = 10;
elasticityMultiplier = 1;
enableTimestampMeta = 0;
enabled = 1;
extras = {
};
geofenceInitialTriggerEntry = 1;
geofenceProximityRadius = 1000;
geofenceTemplate = "";
headers = {
};
heartbeatInterval = 60;
httpRootProperty = location;
httpTimeout = 60000;
iOSHasWarnedLocationServicesOff = 0;
isFirstBoot = 0;
isMoving = 1;
lastLocationAuthorizationStatus = 3;
locationAuthorizationAlert = {
cancelButton = Cancel;
instructions = "To use background location, you must enable '{locationAuthorizationRequest}' in the Location Services settings";
settingsButton = Settings;
titleWhenNotEnabled = "Background location is not enabled";
titleWhenOff = "Location services are off";
};
locationAuthorizationRequest = Always;
locationTemplate = "";
locationTimeout = 60;
locationsOrderDirection = ASC;
logLevel = 5;
logMaxDays = 3;
maxBatchSize = "-1";
maxDaysToPersist = 0;
maxRecordsToPersist = 0;
method = POST;
minimumActivityRecognitionConfidence = 70;
odometer = 0;
params = {
device = {
framework = Cordova;
manufacturer = Apple;
model = "iPhone8,2";
platform = iOS;
uuid = "iPhone8-2";
version = "12.4.1";
};
};
pausesLocationUpdatesAutomatically = 0;
persistMode = 2;
preventSuspend = 0;
schedule = (
);
schedulerEnabled = 0;
startOnBoot = 1;
stationaryRadius = 25;
stopAfterElapsedMinutes = "-1";
stopDetectionDelay = 0;
stopOnStationary = 0;
stopOnTerminate = 0;
stopTimeout = 5;
trackingMode = 1;
url = "http://tracker.transistorsoft.com/locations/nigesh";
useSignificantChangesOnly = 0;
}
β
-[LocationDAO unlock]_block_invoke UNLOCKED ALL RECORDS
2019-09-11 12:04:16.588900+0530 BeamaBuddy[683:175970] β
-[LocationDAO unlock]_block_invoke UNLOCKED ALL RECORDS
2019-09-11 12:04:16.589043+0530 BeamaBuddy[683:175970] βΉοΈ-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT)
βΉοΈ-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT)
βΉοΈ-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude);
2019-09-11 12:04:16.596204+0530 BeamaBuddy[683:175837] βΉοΈ-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude);
βΉοΈ-[TSDBLogger db_delete] maxAge: 259200
2019-09-11 12:04:16.601036+0530 BeamaBuddy[683:175837] βΉοΈ-[TSDBLogger db_delete] maxAge: 259200
βΉοΈ-[TSLocationManager on:success:failure:] location
2019-09-11 12:04:16.618519+0530 BeamaBuddy[683:175837] βΉοΈ-[TSLocationManager on:success:failure:] location
βΉοΈ-[TSLocationManager on:success:failure:] motionchange
2019-09-11 12:04:16.623154+0530 BeamaBuddy[683:175837] βΉοΈ-[TSLocationManager on:success:failure:] motionchange
βΉοΈ-[TSLocationManager on:success:failure:] activitychange
2019-09-11 12:04:16.629476+0530 BeamaBuddy[683:175867] βΉοΈ-[TSLocationManager on:success:failure:] activitychange
βΉοΈ-[TSGeofenceManager onGeofence:]
2019-09-11 12:04:16.630312+0530 BeamaBuddy[683:175867] βΉοΈ-[TSGeofenceManager onGeofence:]
βΉοΈ-[TSLocationManager on:success:failure:] http
2019-09-11 12:04:16.634101+0530 BeamaBuddy[683:175974] βΉοΈ-[TSLocationManager on:success:failure:] http
2019-09-11 12:04:16.635504+0530 BeamaBuddy[683:175685] THREAD WARNING: ['BackgroundGeolocation'] took '14.750977' ms. Plugin should use a background thread.
2019-09-11 12:04:16.636335+0530 BeamaBuddy[683:175685] [TSBackgroundFetch configure]: {
enableHeadless = 1;
minimumFetchInterval = 15;
requiredNetworkType = 0;
requiresBatteryNotLow = 0;
requiresCharging = 0;
requiresDeviceIdle = 0;
requiresStorageNotLow = 0;
startOnBoot = 1;
stopOnTerminate = 0;
}
βΉοΈ-[TSLocationManager on:success:failure:] enabledchange
2019-09-11 12:04:16.638317+0530 BeamaBuddy[683:175976] βΉοΈ-[TSLocationManager on:success:failure:] enabledchange
βΉοΈ-[TSHttpService onConnectivityChange:]
2019-09-11 12:04:16.645191+0530 BeamaBuddy[683:175976] βΉοΈ-[TSHttpService onConnectivityChange:]
π΅-[TSLocationManager ready]
2019-09-11 12:04:16.645551+0530 BeamaBuddy[683:175974] π΅-[TSLocationManager ready]
βΉοΈ-[TSLocationManager doStart:] trackingMode: 1
2019-09-11 12:04:16.645876+0530 BeamaBuddy[683:175976] βΉοΈ-[TSLocationManager doStart:] trackingMode: 1
βΉοΈ-[TSLocationManager loadLastOdometerLocation] <+11.11281651,+77.03574942> +/- -1.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:16 PM India Standard Time
2019-09-11 12:04:16.646136+0530 BeamaBuddy[683:175974] βΉοΈ-[TSLocationManager loadLastOdometerLocation] 2019-09-11 12:04:16.684161+0530 BeamaBuddy[683:175685] [TSBackgroundFetch addListener]: TSLocationManager
<+11.11281651,+77.03574942> +/- -1.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:16 PM India Standard Time
2019-09-11 12:04:16.687858+0530 BeamaBuddy[683:175685] [TSBackgroundFetch start]
πΎ-[TSGeofenceManager start]
2019-09-11 12:04:16.688424+0530 BeamaBuddy[683:175974] πΎ-[TSGeofenceManager start]
πΎ-[SOMotionDetector startDetection]
2019-09-11 12:04:16.689473+0530 BeamaBuddy[683:175976] πΎ-[SOMotionDetector startDetection]
π΅-[TSLocationManager setPace:] 1
2019-09-11 12:04:16.691202+0530 BeamaBuddy[683:175685] [TSBackgroundFetch addListener]: CDVBackgroundFetch
2019-09-11 12:04:16.691250+0530 BeamaBuddy[683:175974] π΅-[TSLocationManager setPace:] 1
2019-09-11 12:04:16.691255+0530 BeamaBuddy[683:175685] [TSBackgroundFetch start]
πΎ-[SOMotionDetector startShakeDetection:] sample-rate: 0.2 | M7 DISABLED
2019-09-11 12:04:16.692020+0530 BeamaBuddy[683:175976] πΎ-[SOMotionDetector startShakeDetection:] sample-rate: 0.2 | M7 DISABLED
πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON
2019-09-11 12:04:16.795429+0530 BeamaBuddy[683:175868] πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON
π΅-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3
2019-09-11 12:04:16.795609+0530 BeamaBuddy[683:175977] π΅-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3
π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3
2019-09-11 12:04:16.795755+0530 BeamaBuddy[683:175868] π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3
π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3
2019-09-11 12:04:16.795887+0530 BeamaBuddy[683:175868] π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3
π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3
2019-09-11 12:04:16.796017+0530 BeamaBuddy[683:175976] π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3
π΅-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3
2019-09-11 12:04:16.800501+0530 BeamaBuddy[683:175976] π΅-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService flush:error:]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:16.801865+0530 BeamaBuddy[683:175971]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService flush:error:]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService finish:error:] Success: 1
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService finish:error:] Success: 1
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\342β
2019-09-11 12:04:16.803836+0530 BeamaBuddy[683:175976]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService finish:error:] Success: 1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βΉοΈ+[LocationAuthorization run:onCancel:] status: 3
2019-09-11 12:04:16.803995+0530 BeamaBuddy[683:175977] βΉοΈ+[LocationAuthorization run:onCancel:] status: 3
πΎ-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON
2019-09-11 12:04:16.807060+0530 BeamaBuddy[683:175976] πΎ-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON
βΉοΈ+[LocationAuthorization run:onCancel:] status: 3
2019-09-11 12:04:16.807209+0530 BeamaBuddy[683:175971] βΉοΈ+[LocationAuthorization run:onCancel:] status: 3
π<+11.11281292,+77.03572426> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:15 PM India Standard Time
2019-09-11 12:04:16.807401+0530 BeamaBuddy[683:175971]
π<+11.11281292,+77.03572426> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:15 PM India Standard Time
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.9s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:16.807584+0530 BeamaBuddy[683:175977]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.9s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+11.11281292,+77.03572426> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:15 PM India Standard Time
2019-09-11 12:04:16.810628+0530 BeamaBuddy[683:175971] β
-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+11.11281292,+77.03572426> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:15 PM India Standard Time
πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON
2019-09-11 12:04:16.813477+0530 BeamaBuddy[683:175976] πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON
π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
2019-09-11 12:04:16.813622+0530 BeamaBuddy[683:175977] π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
πΎ-[TSLocationManager startMonitoringSignificantLocationChanges]
2019-09-11 12:04:16.813808+0530 BeamaBuddy[683:175977] πΎ-[TSLocationManager startMonitoringSignificantLocationChanges]
βΉοΈ+[LocationAuthorization run:onCancel:] status: 3
2019-09-11 12:04:16.813975+0530 BeamaBuddy[683:175977] βΉοΈ+[LocationAuthorization run:onCancel:] status: 3
π΄-[SOMotionDetector stopShakeDetection] OFF
2019-09-11 12:04:16.821715+0530 BeamaBuddy[683:175873] π΄-[SOMotionDetector stopShakeDetection] OFF
β
-[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates
2019-09-11 12:04:16.822233+0530 BeamaBuddy[683:175873] β
-[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:16.826043+0530 BeamaBuddy[683:175969]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:16.826263+0530 BeamaBuddy[683:175873] π΅-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Stop-detection will trigger in 10 seconds...
π΅-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Stop-detection will trigger in 10 seconds...
2019-09-11 12:04:17.014440+0530 BeamaBuddy[683:175685] [connectivitychange] - connected? true
2019-09-11 12:04:17.014707+0530 BeamaBuddy[683:175685] [location] - [object Object]
2019-09-11 12:04:17.014875+0530 BeamaBuddy[683:175685] BG ready state [object Object]
2019-09-11 12:04:17.015341+0530 BeamaBuddy[683:175685] [motionchange] - true [object Object]
2019-09-11 12:04:17.015486+0530 BeamaBuddy[683:175685] [location] - [object Object]
2019-09-11 12:04:17.015620+0530 BeamaBuddy[683:175685] [activitychange] - still 100
2019-09-11 12:04:17.177622+0530 BeamaBuddy[683:175685] this.currentLocation {"lat": 11.112813714927102, "lng": 77.03572349832106}
2019-09-11 12:04:18.816298+0530 BeamaBuddy[683:175685] getting userprofile error Server error
2019-09-11 12:04:20.800623+0530 BeamaBuddy[683:175685] user detail not exist doing second attempt
2019-09-11 12:04:20.805688+0530 BeamaBuddy[683:175685] remainingDays 240
π΅-[TSLocationManager beginStopDetection] β²Stop-timeout engaged: 300 s...
2019-09-11 12:04:26.827601+0530 BeamaBuddy[683:175969] π΅-[TSLocationManager beginStopDetection] β²Stop-timeout engaged: 300 s...
2019-09-11 12:04:26.837969+0530 BeamaBuddy[683:175978] β
-[BackgroundTaskManager createBackgroundTask] 2
β
-[BackgroundTaskManager createBackgroundTask] 2
πΎ-[BackgroundTaskManager startKeepAlive]
2019-09-11 12:04:26.841898+0530 BeamaBuddy[683:175867] πΎ-[BackgroundTaskManager startKeepAlive]
π΄-[TSLocationManager stopUpdatingLocation]
2019-09-11 12:04:26.844536+0530 BeamaBuddy[683:175978] π΄-[TSLocationManager stopUpdatingLocation]
2019-09-11 12:04:38.351240+0530 BeamaBuddy[683:175685] CDVIonicKeyboard: updating frame
2019-09-11 12:04:40.248760+0530 BeamaBuddy[683:175685] CDVIonicKeyboard: updating frame
2019-09-11 12:04:43.128071+0530 BeamaBuddy[683:175867] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x281cab7a0, domain=1, instance=1>
π΅-[TSHttpService init]_block_invoke Network: Cellular | Flags: WR -t-----
2019-09-11 12:04:48.786185+0530 BeamaBuddy[683:175969] π΅-[TSHttpService init]_block_invoke Network: Cellular | Flags: WR -t-----
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService flush:error:]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:48.794308+0530 BeamaBuddy[683:176220]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService flush:error:]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService finish:error:] Success: 1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:48.797972+0530 BeamaBuddy[683:175969]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService finish:error:] Success: 1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:48.799698+0530 BeamaBuddy[683:175867] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C5.1:2][0x106406950] get output frames failed, state 8196
2019-09-11 12:04:48.800044+0530 BeamaBuddy[683:175867] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C5.1:2][0x106406950] get output frames failed, state 8196
2019-09-11 12:04:48.802046+0530 BeamaBuddy[683:175867] TIC Read Status [5:0x0]: 1:57
2019-09-11 12:04:48.802101+0530 BeamaBuddy[683:175867] TIC Read Status [5:0x0]: 1:57
2019-09-11 12:04:48.802581+0530 BeamaBuddy[683:175867] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x10640ed20] get output frames failed, state 8196
2019-09-11 12:04:48.802771+0530 BeamaBuddy[683:175867] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x10640ed20] get output frames failed, state 8196
2019-09-11 12:04:48.803281+0530 BeamaBuddy[683:175867] TIC Read Status [3:0x0]: 1:57
2019-09-11 12:04:48.803312+0530 BeamaBuddy[683:175867] TIC Read Status [3:0x0]: 1:57
2019-09-11 12:04:48.807034+0530 BeamaBuddy[683:175685] [connectivitychange] - connected? true
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:59.373167+0530 BeamaBuddy[683:176220]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON
2019-09-11 12:04:59.378414+0530 BeamaBuddy[683:176220] πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON
π΄-[BackgroundTaskManager stopKeepAlive]
2019-09-11 12:04:59.383564+0530 BeamaBuddy[683:175867] π΄-[BackgroundTaskManager stopKeepAlive]
βΉοΈ-[TSLocationManager resetStopTimeoutTimer]
2019-09-11 12:04:59.386100+0530 BeamaBuddy[683:176336] βΉοΈ-[TSLocationManager resetStopTimeoutTimer]
βΉοΈ+[LocationAuthorization run:onCancel:] status: 3
2019-09-11 12:04:59.405384+0530 BeamaBuddy[683:176336] βΉοΈ+[LocationAuthorization run:onCancel:] status: 3
β
-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 2 OF (
2
)
2019-09-11 12:04:59.410659+0530 BeamaBuddy[683:175978] β
-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 2 OF (
2
)
π<+11.11281815,+77.03572745> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:27 PM India Standard Time
2019-09-11 12:04:59.423463+0530 BeamaBuddy[683:175867]
π<+11.11281815,+77.03572745> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:27 PM India Standard Time
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 31.8s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:59.430221+0530 BeamaBuddy[683:175867]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 31.8s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
2019-09-11 12:04:59.479767+0530 BeamaBuddy[683:176353] π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
π<+11.11281815,+77.03572745> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:36 PM India Standard Time
2019-09-11 12:04:59.479932+0530 BeamaBuddy[683:176342]
π<+11.11281815,+77.03572745> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:04:36 PM India Standard Time
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 22.8s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:04:59.480095+0530 BeamaBuddy[683:175867]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 22.8s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
2019-09-11 12:04:59.487791+0530 BeamaBuddy[683:175867] π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
2019-09-11 12:04:59.494681+0530 BeamaBuddy[683:175685] [activitychange] - on_foot 100
2019-09-11 12:04:59.498578+0530 BeamaBuddy[683:175685] [location] - [object Object]
2019-09-11 12:04:59.499615+0530 BeamaBuddy[683:175685] [location] - [object Object]
π<+11.11281816,+77.03572744> +/- 413.55m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:05:00 PM India Standard Time
2019-09-11 12:05:00.045359+0530 BeamaBuddy[683:176220]
π<+11.11281816,+77.03572744> +/- 413.55m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:05:00 PM India Standard Time
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:05:00.045597+0530 BeamaBuddy[683:176342]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
2019-09-11 12:05:00.046152+0530 BeamaBuddy[683:176342] π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
2019-09-11 12:05:00.050815+0530 BeamaBuddy[683:175685] [location] - [object Object]
π<+11.11283032,+77.03572647> +/- 165.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:05:00 PM India Standard Time
2019-09-11 12:05:00.089435+0530 BeamaBuddy[683:176342]
π<+11.11283032,+77.03572647> +/- 165.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:05:00 PM India Standard Time
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:05:00.090654+0530 BeamaBuddy[683:176220]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βΉοΈ-[TSLocationManager locationManager:didUpdateLocations:] <IGNORED> Ξt since last: 0.0s
2019-09-11 12:05:00.092455+0530 BeamaBuddy[683:176353] βΉοΈ-[TSLocationManager locationManager:didUpdateLocations:] <IGNORED> Ξt since last: 0.0s
π<+11.11283167,+77.03573311> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:05:01 PM India Standard Time
2019-09-11 12:05:01.678633+0530 BeamaBuddy[683:176353]
π<+11.11283167,+77.03573311> +/- 65.00m (speed -1.00 mps / course -1.00) @ 11/09/19, 12:05:01 PM India Standard Time
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:05:01.678998+0530 BeamaBuddy[683:176342]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
2019-09-11 12:05:01.683727+0530 BeamaBuddy[683:176342] π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0
2019-09-11 12:05:01.697052+0530 BeamaBuddy[683:175685] [location] - [object Object]
βΉοΈ-[TSDBLogger db_save] Log committed
2019-09-11 12:05:16.549893+0530 BeamaBuddy[683:176489] βΉοΈ-[TSDBLogger db_save] Log committed
π΅-[TSHttpService init]_block_invoke Network: Cellular | Flags: WR -t-----
2019-09-11 12:05:17.733164+0530 BeamaBuddy[683:176490] π΅-[TSHttpService init]_block_invoke Network: Cellular | Flags: WR -t-----
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService flush:error:]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:05:17.764715+0530 BeamaBuddy[683:176489]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService flush:error:]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService finish:error:] Success: 1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:05:17.784261+0530 BeamaBuddy[683:176490]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β -[TSHttpService finish:error:] Success: 1
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2019-09-11 12:05:17.784297+0530 BeamaBuddy[683:175685] [connectivitychange] - connected? true
π΅-[TSLocationManager onSuspend:] enabled? 1)
2019-09-11 12:05:18.772286+0530 BeamaBuddy[683:176488] π΅-[TSLocationManager onSuspend:] enabled? 1)
βΉοΈ-[TSDBLogger db_save] Log committed
2019-09-11 12:05:18.783306+0530 BeamaBuddy[683:176490] βΉοΈ-[TSDBLogger db_save] Log committed
βΉοΈ-[TSDBLogger db_save] Log committed
2019-09-11 12:05:18.795668+0530 BeamaBuddy[683:176489] βΉοΈ-[TSDBLogger db_save] Log committed
π΅-[TSLocationManager onAppTerminate] stopOnTerminate? 0
2019-09-11 12:05:18.796328+0530 BeamaBuddy[683:176489] π΅-[TSLocationManager onAppTerminate] stopOnTerminate? 0
π΅-[TSLocationManager startMonitoringStationaryRegion:radius:] Radius: 150
2019-09-11 12:05:18.796511+0530 BeamaBuddy[683:176599] π΅-[TSLocationManager startMonitoringStationaryRegion:radius:] Radius: 150
2019-09-11 12:05:18.798224+0530 BeamaBuddy[683:175685] [TSBackgroundFetch onAppTerminate]
2019-09-11 12:05:18.799195+0530 BeamaBuddy[683:176599] π΄-[TSLocationManager stopUpdatingLocation]
So?
Do you have any idea, why location not updated after app terminate?
Have you read the docs for Config.stopOnTerminate?
Yes, already I have set stopOnTerminate to false
And what do the docs tell you about the behavior of ios after the app is terminated?
Before an iOS app terminates, the plugin will ensure that a stationary geofence of stationaryRadius meters is created around the last known position. When the user moves beyond the stationary geofence (typically ~200 meters), iOS will completely reboot your application in the background, and the plugin will resume tracking. iOS maintains geofence monitoring at the OS level, in spite of application terminate / device reboot.
For me tracking doesn't resume in background even I have travelled more than 2 KM
Verify it works in the iOS simulator, while simulating location with Freeway Drive.
Yes I have tested in iOS simulator but it doesn't work, here is my code, do I need to add any config parms? Can you please confirm
async ionViewDidEnter() {
await this.platform.ready();
this.device = (<any>window).device;
this.configureBackgroundGeolocation();
}
configureBackgroundGeolocation() {
// 1. Listen to events (see the docs a list of all available events)
BackgroundGeolocation.onLocation(this.onLocation.bind(this));
BackgroundGeolocation.onMotionChange(this.onMotionChange.bind(this));
BackgroundGeolocation.onActivityChange(this.onActivityChange.bind(this));
BackgroundGeolocation.onGeofence(this.onGeofence.bind(this));
BackgroundGeolocation.onHttp(this.onHttp.bind(this));
BackgroundGeolocation.onEnabledChange(this.onEnabledChange.bind(this));
BackgroundGeolocation.onConnectivityChange(this.onConnectivityChange.bind(this));
// 2. Configure the plugin
BackgroundGeolocation.ready({
debug: true,
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: 10,
preventSuspend: true,
heartbeatInterval: 60,
stopOnTerminate: false,
stopOnStationary: false,
startOnBoot: true,
url: 'http://tracker.transistorsoft.com/locations/nigesh',
autoSync: true,
params: BackgroundGeolocation.transistorTrackerParams(this.device),
}, (state) => {
if (!state.enabled) {
BackgroundGeolocation.start();
} else {
}
});
}
onLocation(location: Location) {
console.log('[location] -', location);
}
onMotionChange(event: MotionChangeEvent) {
console.log('[motionchange] -', event.isMoving, event.location);
}
onActivityChange(event: MotionActivityEvent) {
console.log('[activitychange] -', event.activity, event.confidence);
}
onGeofence(event: GeofenceEvent) {
console.log('[geofence] -', event.action, event.identifier, event.location);
}
onHttp(event: HttpEvent) {
console.log('[http] -', event.success, event.status, event.responseText);
}
onEnabledChange(enabled: boolean) {
console.log('[enabledchange] - enabled? ', enabled);
}
onConnectivityChange(event: ConnectivityChangeEvent) {
console.log('[connectivitychange] - connected?', event.connected);
}
If it doesnβt work in sim, the problem is in your code. Make sure your app executes #ready no matter what, each time the app launches, being aware that your app may be launched automatically in the background by the os.
I'm facing the same problem as @nijesh17
I do not have this issue in the SampleApp. Try it in the simulator.
I just tried what you've mentioned: "executes #ready no matter what, each time the app launches" and it worked. Now I need to find out why executing after login into my app and in certain conditions, it does not work.
What should I do in case I need to check if the logged user has some particular property and then start to collect his positions?
The plugin persists its enabled
state. When you call #ready
and the plugin is already state.enabled == true
, the #ready
method automatically calls #start
upon itself.
Do I need to add any other configuration other than this https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/987#issuecomment-530680854 to work on iOS?
Config options are not the issue.
I suggest you make a simple hello world app for yourself and first experiment in the simulator.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.
@jeya-duraisamy Did you find the solution? I am also facing the same issue.
Your Environment
cordova -v
): 9.0.3cordova platform ls
): 5.0.1#ready
:Expected Behavior
After the application is killed, location tracking should start working after driving 2-3 miles
Actual Behavior
After the application is killed, location tracking is not getting enabled even after driving for 15 miles. It enabled only when opening the app back again.
Steps to Reproduce
Note:
Context
Background location tracking after the app is killed and the device is in motion
Debug logs
Logs - from emailLog
``` 2019-08-25 12:09:17.671 βΉοΈ-[TSConfig persist] 2019-08-25 12:09:17.673 π΅-[TSLocationManager ready] 2019-08-25 12:09:17.699 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager stop] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:17.700 βΉοΈ-[TSLocationManager clearLastOdometerLocation] 2019-08-25 12:09:17.700 π΄-[TSGeofenceManager stop] 2019-08-25 12:09:17.701 π΄-[TSGeofenceManager stopMonitoringGeofences] 2019-08-25 12:09:17.702 π΄-[TSLocationManager stopUpdatingLocation] 2019-08-25 12:09:17.702 π΄-[TSLocationManager stopMonitoringBackgroundFetch] BackgroundFetch: OFF 2019-08-25 12:09:17.702 π΄-[TSLocationManager stopMonitoringSignificantLocationChanges] 2019-08-25 12:09:17.851 βΉοΈ-[TSConfig persist] 2019-08-25 12:09:35.512 βΉοΈ-[TSLocationManager on:success:failure:] location 2019-08-25 12:09:35.512 βΉοΈ-[TSLocationManager on:success:failure:] http 2019-08-25 12:09:35.514 βΉοΈ-[TSLocationManager on:success:failure:] heartbeat 2019-08-25 12:09:35.517 β οΈ-[TSLocationManager log:message:] #ready already called. Redirecting to #setConfig 2019-08-25 12:09:35.518 βΉοΈ-[TSConfig persist] 2019-08-25 12:09:35.523 π΅-[TSLocationManager getCurrentPosition:] 2019-08-25 12:09:35.523 πΎ-[LocationManager startUpdatingLocation] ON 2019-08-25 12:09:35.524 βΉοΈ-[TSDBLogger db_save] Log committed 2019-08-25 12:09:35.525 βΉοΈ+[LocationAuthorization run:onCancel:] status: 0 2019-08-25 12:09:35.525 π΅+[LocationAuthorization run:onCancel:] Request: requestAlwaysAuthorization 2019-08-25 12:09:35.870 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager start] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:35.870 βΉοΈ-[TSLocationManager doStart:] trackingMode: 1 2019-08-25 12:09:35.870 βΉοΈ-[TSConfig persist] 2019-08-25 12:09:35.873 πΎ-[TSGeofenceManager start] 2019-08-25 12:09:35.874 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService flush:error:] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:35.875 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService finish:error:] Success: 1 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:35.875 πΎ-[SOMotionDetector startDetection] 2019-08-25 12:09:35.875 π΅-[TSLocationManager setPace:] 0 2019-08-25 12:09:35.881 βΉοΈ+[LocationAuthorization run:onCancel:] status: 0 2019-08-25 12:09:35.881 π΅+[LocationAuthorization run:onCancel:] Request: requestAlwaysAuthorization 2019-08-25 12:09:35.880 πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON 2019-08-25 12:09:35.893 πΎ-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON 2019-08-25 12:09:37.062 β -[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates 2019-08-25 12:09:37.109 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:38.361 π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3 2019-08-25 12:09:38.375 π΅-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3 2019-08-25 12:09:38.414 βΉοΈ-[TSConfig persist] 2019-08-25 12:09:38.416 π΅-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3 2019-08-25 12:09:38.428 πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON 2019-08-25 12:09:38.434 βΉοΈ+[LocationAuthorization run:onCancel:] status: 3 2019-08-25 12:09:38.435 π<+40.06497816,-75.57317785> +/- 65.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:09:36 PM Eastern Daylight Time 2019-08-25 12:09:38.435 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 0 | df: -1.0m | age: 1.8s ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:38.435 β -[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+40.06497816,-75.57317785> +/- 65.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:09:36 PM Eastern Daylight Time 2019-08-25 12:09:38.436 π΅-[TSLocationManager startMonitoringStationaryRegion:radius:] Radius: 25 2019-08-25 12:09:38.437 π΄-[TSLocationManager stopUpdatingLocation] 2019-08-25 12:09:38.437 π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0 2019-08-25 12:09:38.438 πΎ-[TSLocationManager startMonitoringSignificantLocationChanges] 2019-08-25 12:09:38.445 β -[TSLocationManager persistLocation:]_block_invoke INSERT: 4022F6E1-9184-4519-A1FB-3F5A1AD5200A 2019-08-25 12:09:38.445 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService flush:error:] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:38.445 β -[BackgroundTaskManager createBackgroundTask] 5 2019-08-25 12:09:38.453 β -[TSHttpService schedulePost:] LOCKED: 4022F6E1-9184-4519-A1FB-3F5A1AD5200A 2019-08-25 12:09:38.625 π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3 2019-08-25 12:09:38.626 π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3 2019-08-25 12:09:38.644 π<+40.06497816,-75.57317785> +/- 65.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:09:36 PM Eastern Daylight Time 2019-08-25 12:09:38.644 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:38.664 π<+40.06497816,-75.57317785> +/- 65.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:09:38 PM Eastern Daylight Time 2019-08-25 12:09:38.664 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[LocationManager locationManager:didUpdateLocations:] Sample 2 of 3 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:38.808 π<+40.06497820,-75.57318212> +/- 65.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:09:38 PM Eastern Daylight Time 2019-08-25 12:09:38.808 π΄-[LocationManager stopUpdatingLocation] OFF 2019-08-25 12:09:38.808 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[LocationManager locationManager:didUpdateLocations:] Sample 3 of 3 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:38.808 π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0 2019-08-25 12:09:39.304 π΅-[TSHttpService doPost:] HTTP Response: 200 2019-08-25 12:09:39.312 β -[TSHttpService post:error:] DESTROY: 4022F6E1-9184-4519-A1FB-3F5A1AD5200A 2019-08-25 12:09:39.312 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService finish:error:] Success: 1 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:09:39.312 β -[BackgroundTaskManager stopBackgroundTask:]_block_invoke 5 OF ( 5 ) 2019-08-25 12:09:59.538 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:00.485 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:01.117 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:02.696 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:03.647 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:08.696 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:13.116 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:14.703 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:16.917 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:18.507 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:19.767 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:21.031 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:21.653 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:24.185 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:25.133 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:27.365 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:30.512 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:31.145 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:34.282 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:35.546 βΉοΈ-[TSDBLogger db_save] Log committed 2019-08-25 12:10:37.445 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:38.390 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:39.655 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:40.920 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:43.448 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:49.138 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:10:51.980 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:11:30.870 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:11:30.870 π΅-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Query location-state will trigger in 10 seconds... 2019-08-25 12:11:35.567 βΉοΈ-[TSDBLogger db_save] Log committed 2019-08-25 12:11:40.872 πΎ-[LocationManager requestLocation] ONESHOT 2019-08-25 12:11:45.055 π<+40.06477120,-75.57328938> +/- 10.00m (speed 0.70 mps / course 138.52) @ 8/25/19, 12:11:45 PM Eastern Daylight Time 2019-08-25 12:11:45.055 π΄-[LocationManager stopUpdatingLocation] OFF 2019-08-25 12:11:45.056 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 1 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:11:45.056 π΅-[TSLocationManager onUpdateState:location:type:] Location still within stationaryRadius (25 m) Ξd: 24 m. Motion-trigger ignored. 2019-08-25 12:11:45.057 π΅-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Query location-state will trigger in 10 seconds... 2019-08-25 12:11:55.058 πΎ-[LocationManager requestLocation] ONESHOT 2019-08-25 12:11:55.068 π<+40.06480590,-75.57322366> +/- 5.00m (speed 0.00 mps / course -1.00) @ 8/25/19, 12:11:51 PM Eastern Daylight Time 2019-08-25 12:11:55.068 π΄-[LocationManager stopUpdatingLocation] OFF 2019-08-25 12:11:55.068 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 1 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:11:55.068 π΅-[TSLocationManager onUpdateState:location:type:] Location still within stationaryRadius (25 m) Ξd: 19 m. Motion-trigger ignored. 2019-08-25 12:11:55.068 π΅-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Query location-state will trigger in 10 seconds... 2019-08-25 12:11:55.368 π΅-[TSLocationManager onSuspend:] enabled? 1) 2019-08-25 12:29:59.591 βΉοΈ-[TSLocationManager init] { activityRecognitionInterval = 10000; activityType = 1; autoSync = 1; autoSyncThreshold = 0; batchSync = 0; debug = 1; desiredAccuracy = "-1"; desiredOdometerAccuracy = 100; didLaunchInBackground = 0; disableElasticity = 0; disableLocationAuthorizationAlert = 0; disableMotionActivityUpdates = 0; disableStopDetection = 0; distanceFilter = 50; elasticityMultiplier = 1; enableTimestampMeta = 0; enabled = 1; extras = { }; geofenceInitialTriggerEntry = 1; geofenceProximityRadius = 1000; geofenceTemplate = ""; headers = { "CUSTOM-TOKEN-KEY" = "customheadervalue"; }; heartbeatInterval = 60; httpRootProperty = location; httpTimeout = 60000; iOSHasWarnedLocationServicesOff = 0; isFirstBoot = 0; isMoving = 0; lastLocationAuthorizationStatus = 3; locationAuthorizationAlert = { cancelButton = Cancel; instructions = "To use background location, you must enable '{locationAuthorizationRequest}' in the Location Services settings"; settingsButton = Settings; titleWhenNotEnabled = "Background location is not enabled"; titleWhenOff = "Location services are off"; }; locationAuthorizationRequest = Always; locationTemplate = ""; locationTimeout = 60; locationsOrderDirection = ASC; logLevel = 5; logMaxDays = 3; maxBatchSize = "-1"; maxDaysToPersist = 1; maxRecordsToPersist = "-1"; method = POST; minimumActivityRecognitionConfidence = 70; odometer = 0; params = { }; pausesLocationUpdatesAutomatically = 0; persistMode = 2; preventSuspend = 0; schedule = ( ); schedulerEnabled = 0; startOnBoot = 1; stationaryRadius = 25; stopAfterElapsedMinutes = "-1"; stopDetectionDelay = 0; stopOnStationary = 0; stopOnTerminate = 0; stopTimeout = 1; trackingMode = 1; url = "customurl"; useSignificantChangesOnly = 0; } 2019-08-25 12:29:59.592 βΉοΈ-[TSDBLogger db_delete] maxAge: 259200 2019-08-25 12:29:59.592 β -[LocationDAO unlock]_block_invoke UNLOCKED ALL RECORDS 2019-08-25 12:29:59.594 βΉοΈ-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT) 2019-08-25 12:29:59.594 βΉοΈ-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude); 2019-08-25 12:29:59.632 π΅-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3 2019-08-25 12:29:59.640 βΉοΈ-[TSDBLogger db_save] Log committed 2019-08-25 12:29:59.661 βΉοΈ+[LocationAuthorization run:onCancel:] status: 3 2019-08-25 12:29:59.680 π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3 2019-08-25 12:29:59.681 π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3 2019-08-25 12:29:59.710 π΅-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 3 2019-08-25 12:29:59.710 π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3 2019-08-25 12:29:59.886 βΉοΈ-[TSLocationManager on:success:failure:] location 2019-08-25 12:29:59.886 βΉοΈ-[TSLocationManager on:success:failure:] http 2019-08-25 12:29:59.887 βΉοΈ-[TSLocationManager on:success:failure:] heartbeat 2019-08-25 12:29:59.897 βΉοΈ-[TSConfig persist] 2019-08-25 12:29:59.899 π΅-[TSLocationManager ready] 2019-08-25 12:29:59.899 βΉοΈ-[TSLocationManager doStart:] trackingMode: 1 2019-08-25 12:29:59.900 βΉοΈ-[TSLocationManager loadLastOdometerLocation] <+40.06497816,-75.57317785> +/- -1.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:29:59 PM Eastern Daylight Time 2019-08-25 12:29:59.900 πΎ-[TSGeofenceManager start] 2019-08-25 12:29:59.901 πΎ-[SOMotionDetector startDetection] 2019-08-25 12:29:59.901 π΅-[TSLocationManager setPace:] 0 2019-08-25 12:29:59.903 πΎ-[TSLocationManager startUpdatingLocation] Location-services: ON 2019-08-25 12:29:59.904 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService flush:error:] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:29:59.905 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService finish:error:] Success: 1 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:29:59.906 βΉοΈ+[LocationAuthorization run:onCancel:] status: 3 2019-08-25 12:29:59.907 βΉοΈ-[TSDBLogger db_save] Log committed 2019-08-25 12:29:59.908 πΎ-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON 2019-08-25 12:29:59.985 β -[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates 2019-08-25 12:29:59.987 π<+40.06503989,-75.57318931> +/- 65.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:29:52 PM Eastern Daylight Time 2019-08-25 12:29:59.987 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 0 | df: -1.0m | age: 7.3s ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:29:59.987 βΉοΈ-[TSLocationManager locationManager:didUpdateLocations:] Received stale motionchange location. Retrying... 2019-08-25 12:29:59.987 π<+40.06503989,-75.57318931> +/- 65.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:29:59 PM Eastern Daylight Time 2019-08-25 12:29:59.987 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 0 | df: -1.0m | age: 0.0s ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:29:59.988 β -[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+40.06503989,-75.57318931> +/- 65.00m (speed -1.00 mps / course -1.00) @ 8/25/19, 12:29:59 PM Eastern Daylight Time 2019-08-25 12:29:59.988 π΅-[TSLocationManager startMonitoringStationaryRegion:radius:] Radius: 25 2019-08-25 12:29:59.988 π΄-[TSLocationManager stopUpdatingLocation] 2019-08-25 12:29:59.988 π΅-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 65.0 2019-08-25 12:29:59.988 πΎ-[TSLocationManager startMonitoringSignificantLocationChanges] 2019-08-25 12:30:00.061 β -[TSLocationManager persistLocation:]_block_invoke INSERT: C286C280-021C-44AA-8270-BF633F4CE6C1 2019-08-25 12:30:00.064 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService flush:error:] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:30:00.065 β -[BackgroundTaskManager createBackgroundTask] 3 2019-08-25 12:30:00.073 β -[TSHttpService schedulePost:] LOCKED: C286C280-021C-44AA-8270-BF633F4CE6C1 2019-08-25 12:30:00.085 βΉοΈ-[TSConfig persist] 2019-08-25 12:30:00.890 π΅-[TSHttpService doPost:] HTTP Response: 200 2019-08-25 12:30:00.903 β -[TSHttpService post:error:] DESTROY: C286C280-021C-44AA-8270-BF633F4CE6C1 2019-08-25 12:30:00.903 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService finish:error:] Success: 1 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:30:00.904 β -[BackgroundTaskManager stopBackgroundTask:]_block_invoke 3 OF ( 3 ) 2019-08-25 12:30:16.629 π΅-[TSLocationManager onSuspend:] enabled? 1) 2019-08-25 12:30:16.659 βΉοΈ-[TSDBLogger db_save] Log committed 2019-08-25 12:31:56.702 π΅-[TSLocationManager onResume:] enabled? 1 2019-08-25 12:31:56.702 βΉοΈ-[LocationDAO purge:] 1 2019-08-25 12:31:56.710 βΉοΈ-[TSDBLogger db_save] Log committed 2019-08-25 12:31:56.733 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService flush:error:] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:31:56.733 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSHttpService finish:error:] Success: 1 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:32:05.218 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 2019-08-25 12:32:25.418 π΅-[TSLocationManager onSuspend:] enabled? 1) 2019-08-25 12:57:50.540 βΉοΈ-[TSLocationManager init] { activityRecognitionInterval = 10000; activityType = 1; autoSync = 1; autoSyncThreshold = 0; batchSync = 0; debug = 1; desiredAccuracy = "-1"; desiredOdometerAccuracy = 100; didLaunchInBackground = 0; disableElasticity = 0; disableLocationAuthorizationAlert = 0; disableMotionActivityUpdates = 0; disableStopDetection = 0; distanceFilter = 50; elasticityMultiplier = 1; enableTimestampMeta = 0; enabled = 1; extras = { }; geofenceInitialTriggerEntry = 1; geofenceProximityRadius = 1000; geofenceTemplate = ""; headers = { "CUSTOM-TOKEN-KEY" = "customTokenValue"; }; heartbeatInterval = 60; httpRootProperty = location; httpTimeout = 60000; iOSHasWarnedLocationServicesOff = 0; isFirstBoot = 0; isMoving = 0; lastLocationAuthorizationStatus = 3; locationAuthorizationAlert = { cancelButton = Cancel; instructions = "To use background location, you must enable '{locationAuthorizationRequest}' in the Location Services settings"; settingsButton = Settings; titleWhenNotEnabled = "Background location is not enabled"; titleWhenOff = "Location services are off"; }; locationAuthorizationRequest = Always; locationTemplate = ""; locationTimeout = 60; locationsOrderDirection = ASC; logLevel = 5; logMaxDays = 3; maxBatchSize = "-1"; maxDaysToPersist = 1; maxRecordsToPersist = "-1"; method = POST; minimumActivityRecognitionConfidence = 70; odometer = 0; params = { }; pausesLocationUpdatesAutomatically = 0; persistMode = 2; preventSuspend = 0; schedule = ( ); schedulerEnabled = 0; startOnBoot = 1; stationaryRadius = 25; stopAfterElapsedMinutes = "-1"; stopDetectionDelay = 0; stopOnStationary = 0; stopOnTerminate = 0; stopTimeout = 1; trackingMode = 1; url = "customUrl"; useSignificantChangesOnly = 0; } 2019-08-25 12:57:50.540 βΉοΈ-[TSDBLogger db_delete] maxAge: 259200 2019-08-25 12:57:50.541 β -[LocationDAO unlock]_block_invoke UNLOCKED ALL RECORDS 2019-08-25 12:57:50.543 βΉοΈ-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT) 2019-08-25 12:57:50.543 βΉοΈ-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude); 2019-08-25 12:57:50.580 π΅-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 3 2019-08-25 12:57:50.590 π΅-[LocationManager locationManager:didChangeAuthorizationStatus:] 3 ```