Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background location service not started automatically after device reboot #173

Closed
preritkhera opened this issue Jan 14, 2020 · 23 comments
Closed
Labels

Comments

@preritkhera
Copy link

Your Environment

  • Plugin version:1.5.0
  • Platform: iOS or Android
  • OS version:Android 10
  • Device manufacturer / model:One Plus
  • Flutter info (flutter doctor):
  • Plugin config:
PASTE_YOUR_CODE_HERE

Expected Behavior

Background service should started automatically when i reboot my device.

Actual Behavior

Background service does not start automatically, i need to run my app again then the service starts.

Steps to Reproduce

Context

Debug logs

Logs
PASTE_YOUR_LOGS_HERE
@christocracy
Copy link
Member

startOnBoot: true doesn't work until the device is first unlocked after reboot.

Enable debug: true and reboot the device: You will hear the plugin come alive. You should also monitor adb logcat *:S TSLocationManager so you can see the logs when the plugin comes alive after reboot.

See Wiki "Debugging".

@preritkhera
Copy link
Author

I have removed all the locks from my android device and restart my phone several times. The background service does not start itself automatically.

following configuration we are using given below.

bg.BackgroundGeolocation.ready(bg.Config(
desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
distanceFilter: 10,
stopOnTerminate: false,
startOnBoot: true,
debug: true,
logLevel: bg.Config.LOG_LEVEL_VERBOSE,
enableHeadless: true,
url: "http://app.digitaltracking.in/wapi/apiEmpData",
autoSync: true,
autoSyncThreshold: 5,
batchSync: true,
maxBatchSize: 50,
activityRecognitionInterval: 0,
preventSuspend: true,
params: {
"userid": userid
},
extras: {
"routeid": 1234
},
locationsOrderDirection: "DESC",
maxDaysToPersist: 14
));

@christocracy
Copy link
Member

Are you observing logcat for errors when your app boots?

@preritkhera
Copy link
Author

I enabled debug: true and reboot my device
I heard nothing from device.
Can you reply me clearly that how it will work?
If needed can you please explain instead of giving answer in short way
please!...

@christocracy
Copy link
Member

I asked you 1 question:

Are you observing logcat for errors when your app boots?

What is the answer?

@preritkhera
Copy link
Author

These are my logs when my application starts..
I/flutter (12206): [BackgroundGeolocation registerHeadlessTask] ‼️ ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized.
I/flutter (12206): If you're running an application and need to access the binary messenger before runApp() has been called (for example, during plugin initialization), then you need to explicitly call the WidgetsFlutterBinding.ensureInitialized() first.
I/flutter (12206): If you're running a test, you can call the TestWidgetsFlutterBinding.ensureInitialized() as the first line in your test's main() method to initialize the binding.
I/flutter (12206): null
I/flutter (12206): [providerchange] - [ProviderChangeEvent enabled:true, status: 3, network: true, gps: true]
I/flutter (12206): [location] - [Location {is_moving: false, extras: {routeid: 1234}, activity: {confidence: 100, type: still}, odometer: 0.0, uuid: e7f2c5b4-3e02-4ac9-8e1e-b51e708fbab4, timestamp: 2020-01-16T15:21:29.623Z, battery: {is_charging: true, level: 0.88}, coords: {altitude: -1.0, heading: -1.0, latitude: 27.1982175, speed: -1.0, accuracy: 16.0, longitude: 78.0385379}}]
I/flutter (12206): on location
I/flutter (12206): [motionchange] - [Location {is_moving: false, extras: {routeid: 1234}, activity: {confidence: 100, type: still}, odometer: 0.0, uuid: e7f2c5b4-3e02-4ac9-8e1e-b51e708fbab4, timestamp: 2020-01-16T15:21:29.623Z, battery: {is_charging: true, level: 0.88}, coords: {altitude: -1.0, heading: -1.0, latitude: 27.1982175, speed: -1.0, accuracy: 16.0, longitude: 78.0385379}}]

now please tell me what should i do with that?

@christocracy
Copy link
Member

In the Issue template, you were asked:

Flutter info (flutter doctor):

You ignored this. What is the result?

@preritkhera
Copy link
Author

App is working fine
when i swap the application and after that the background service restarts automatically, it is also fine
but my concern is that why this service does not start after device reboot?

@christocracy
Copy link
Member

Flutter info (flutter doctor):

@preritkhera
Copy link
Author

Flutter 1.12.13+hotfix.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 27321ebbad (5 weeks ago) • 2019-12-10 18:15:01 -0800
Engine • revision 2994f7e1e6
Tools • Dart 2.7.0

@christocracy
Copy link
Member

Show me the file containing BackgroundGeolocation.registerHeadlessTask

These are my logs when my application starts..

Those are the logs when your device restart? I want the logs when your device restarts.

You need to use $ adb logcat in the terminal.

@preritkhera
Copy link
Author

This command give me too much logs and it does not stop on screen
how would i share?

@transistorsoft transistorsoft deleted a comment from preritkhera Jan 16, 2020
@christocracy
Copy link
Member

Do not spam the thread with immense amount of logs. It's annoying to scroll through. There's nothing interesting in those logs and I deleted it. Use a https://gist.github.com.

Also, filter your logs:

adb logcat *:S TSLocationManager:V flutter:V

@preritkhera
Copy link
Author

D:\AndroidApp\Prince\emptrack>adb logcat *:S TSLocationManager:V flutter:V
--------- beginning of main
--------- beginning of system
--------- beginning of crash

showing this and nothing...

@preritkhera
Copy link
Author

01-16 21:34:13.735 13297 13337 I flutter : Observatory listening on http://127.0.0.1:42912/1PL8d9tC_1o=/
01-16 21:34:13.781 13297 13297 I TSLocationManager: [c.t.l.adapter.TSConfig print]
01-16 21:34:13.781 13297 13297 I TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:13.781 13297 13297 I TSLocationManager: ║ TSLocationManager version: 3.0.46 (346)
01-16 21:34:13.781 13297 13297 I TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:13.781 13297 13297 I TSLocationManager: ╟─ Xiaomi Redmi Note 3 @ 6.0.1 (flutter)
01-16 21:34:13.781 13297 13297 I TSLocationManager: {
01-16 21:34:13.781 13297 13297 I TSLocationManager: "activityRecognitionInterval": 0,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "allowIdenticalLocations": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "authorization": {},
01-16 21:34:13.781 13297 13297 I TSLocationManager: "autoSync": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "autoSyncThreshold": 5,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "batchSync": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "configUrl": "",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "debug": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "deferTime": 0,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "desiredAccuracy": -1,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "desiredOdometerAccuracy": 100,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "disableAutoSyncOnCellular": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "disableElasticity": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "disableLocationAuthorizationAlert": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "disableMotionActivityUpdates": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "disableStopDetection": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "distanceFilter": 10,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "elasticityMultiplier": 1,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "enableHeadless": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "enableTimestampMeta": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "encrypt": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "extras": {
01-16 21:34:13.781 13297 13297 I TSLocationManager: "routeid": 1234
01-16 21:34:13.781 13297 13297 I TSLocationManager: },
01-16 21:34:13.781 13297 13297 I TSLocationManager: "fastestLocationUpdateInterval": -1,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "forceReloadOnBoot": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "forceReloadOnGeofence": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "forceReloadOnHeartbeat": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "forceReloadOnLocationChange": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "forceReloadOnMotionChange": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "forceReloadOnSchedule": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "foregroundService": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "geofenceInitialTriggerEntry": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "geofenceModeHighAccuracy": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "geofenceProximityRadius": 1000,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "geofenceTemplate": "",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "headers": {},
01-16 21:34:13.781 13297 13297 I TSLocationManager: "headlessJobService": "com.transistorsoft.flutter.backgroundgeolocation.HeadlessTask",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "heartbeatInterval": -1,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "httpRootProperty": "location",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "httpTimeout": 60000,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "isMoving": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "locationAuthorizationRequest": "Always",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "locationTemplate": "",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "locationTimeout": 60,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "locationUpdateInterval": 1000,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "locationsOrderDirection": "DESC",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "logLevel": 5,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "logMaxDays": 3,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "maxBatchSize": 50,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "maxDaysToPersist": 14,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "maxRecordsToPersist": -1,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "method": "POST",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "minimumActivityRecognitionConfidence": 75,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "notification": {
01-16 21:34:13.781 13297 13297 I TSLocationManager: "layout": "",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "title": "",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "text": "Location Service activated",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "color": "",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "channelName": "TSLocationManager",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "smallIcon": "",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "largeIcon": "",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "priority": 0,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "strings": {},
01-16 21:34:13.781 13297 13297 I TSLocationManager: "actions": []
01-16 21:34:13.781 13297 13297 I TSLocationManager: },
01-16 21:34:13.781 13297 13297 I TSLocationManager: "params": {},
01-16 21:34:13.781 13297 13297 I TSLocationManager: "persist": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "persistMode": 2,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "schedule": [],
01-16 21:34:13.781 13297 13297 I TSLocationManager: "scheduleUseAlarmManager": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "speedJumpFilter": 300,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "startOnBoot": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "stationaryRadius": 25,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "stopAfterElapsedMinutes": 0,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "stopOnStationary": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "stopOnTerminate": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "stopTimeout": 5,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "url": "http://app.digitaltracking.in/wapi/apiEmpData",
01-16 21:34:13.781 13297 13297 I TSLocationManager: "useSignificantChangesOnly": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "enabled": true,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "schedulerEnabled": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "trackingMode": 1,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "odometer": 0,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "isFirstBoot": false,
01-16 21:34:13.781 13297 13297 I TSLocationManager: "didLaunchInBackground": false
01-16 21:34:13.781 13297 13297 I TSLocationManager: }
01-16 21:34:13.809 13297 13297 I TSLocationManager: [c.t.l.adapter.TSConfig print]
01-16 21:34:13.809 13297 13297 I TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:13.809 13297 13297 I TSLocationManager: ║ DEVICE SENSORS
01-16 21:34:13.809 13297 13297 I TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:13.809 13297 13297 I TSLocationManager: ╟─ ✅ ACCELEROMETER: {Sensor name="BMI160 Accelerometer", vendor="BOSCH", version=2061000, type=1, maxRange=39.22661, resolution=0
.0023956299, power=0.18, minDelay=5000}
01-16 21:34:13.809 13297 13297 I TSLocationManager: ╟─ ✅ GYROSCOPE: {Sensor name="BMI160 Gyroscope", vendor="BOSCH", version=2061000, type=4, maxRange=34.906586, resolution=0.001068
1152, power=0.9, minDelay=5000}
01-16 21:34:13.809 13297 13297 I TSLocationManager: ╟─ ✅ MAGNETOMETER: {Sensor name="YAS537 Magnetometer", vendor="Yamaha", version=35193090, type=2, maxRange=2000.0, resolution=0.3
0059814, power=0.28, minDelay=10000}
01-16 21:34:13.809 13297 13297 I TSLocationManager: ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="Significant Motion Detector", vendor="QTI", version=2, type=17, maxRange=1.0, resolution=1
.0, power=0.17999268, minDelay=-1}
01-16 21:34:13.809 13297 13297 I TSLocationManager: ╚═════════════════════════════════════════════
01-16 21:34:13.821 13297 13297 I TSLocationManager: [c.t.l.a.BackgroundGeolocation ]
01-16 21:34:13.821 13297 13297 I TSLocationManager: ✅ Google Play Services: connected (version code:12451000)
01-16 21:34:13.846 13297 13346 D TSLocationManager: [c.t.l.l.TSLocationManager$4 run]
01-16 21:34:13.846 13297 13346 D TSLocationManager: ℹ️ Load last odometer location: Location[TSLocationManager 27.198218,78.038538 acc=16 t=?!? et=?!? {Bundle[{odometer=0.0}]}]
01-16 21:34:13.860 13297 13347 D TSLocationManager: [c.t.l.data.sqlite.b prune]
01-16 21:34:13.860 13297 13347 D TSLocationManager: ℹ️ PRUNE -14 days
01-16 21:34:13.887 13297 13297 D TSLocationManager: [c.t.l.http.HttpService startMonitoringConnectivityChanges]
01-16 21:34:13.887 13297 13297 D TSLocationManager: 🎾 Start monitoring connectivity changes
01-16 21:34:13.896 13297 13356 D TSLocationManager: [c.t.l.http.HttpService a]
01-16 21:34:13.896 13297 13356 D TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:13.896 13297 13356 D TSLocationManager: ║ 📶 Connectivity change: connected? true
01-16 21:34:13.896 13297 13356 D TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:13.901 13297 13297 I TSLocationManager: [c.t.l.a.BackgroundGeolocation e]
01-16 21:34:13.901 13297 13297 I TSLocationManager: 🎾 Start monitoring location-provider changes
01-16 21:34:13.944 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/location
01-16 21:34:13.945 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/motionchange
01-16 21:34:13.946 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/activitychange
01-16 21:34:13.946 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofenceschange
01-16 21:34:13.948 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/geofence
01-16 21:34:13.949 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/heartbeat
01-16 21:34:13.950 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/http
01-16 21:34:13.953 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/schedule
01-16 21:34:13.954 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/connectivitychange
01-16 21:34:13.957 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/enabledchange
01-16 21:34:13.958 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/providerchange
01-16 21:34:13.961 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/powersavechange
01-16 21:34:13.961 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/notificationaction
01-16 21:34:13.962 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler register] com.transistorsoft/flutter_background_geolocation/events/authorization
01-16 21:34:14.900 13297 13297 I TSLocationManager: [c.t.l.http.HttpService flush]
01-16 21:34:14.900 13297 13297 I TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:14.900 13297 13297 I TSLocationManager: ║ HTTP Service (count: 0)
01-16 21:34:14.900 13297 13297 I TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:14.988 13297 13320 I flutter : [BackgroundGeolocation registerHeadlessTask] ‼️ ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized.
01-16 21:34:14.988 13297 13320 I flutter : If you're running an application and need to access the binary messenger before runApp() has been called (for example, during plugin init
ialization), then you need to explicitly call the WidgetsFlutterBinding.ensureInitialized() first.
01-16 21:34:14.988 13297 13320 I flutter : If you're running a test, you can call the TestWidgetsFlutterBinding.ensureInitialized() as the first line in your test's main() method
to initialize the binding.
01-16 21:34:16.977 13297 13320 I flutter : null
01-16 21:34:16.999 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler onListen] location
01-16 21:34:17.001 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler onListen] motionchange
01-16 21:34:17.002 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler onListen] providerchange
01-16 21:34:17.003 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler onListen] activitychange
01-16 21:34:17.011 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler onListen] connectivitychange
01-16 21:34:17.012 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler onListen] authorization
01-16 21:34:17.013 13297 13297 D TSLocationManager: [c.t.f.b.streams.StreamHandler onListen] http
01-16 21:34:17.174 13297 13297 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️ Persist config, dirty: [activityRecognitionInterval, autoSyncThreshold, batchSync, debug, desiredA
ccuracy, enableHeadless, extras, headlessJobService, locationsOrderDirection, logLevel, maxBatchSize, maxDaysToPersist, params, startOnBoot, stopOnTerminate, url]
01-16 21:34:17.185 13297 13297 I TSLocationManager: [c.t.l.http.HttpService flush]
01-16 21:34:17.185 13297 13297 I TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:17.185 13297 13297 I TSLocationManager: ║ HTTP Service (count: 0)
01-16 21:34:17.185 13297 13297 I TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:17.197 13297 13297 D TSLocationManager: [c.t.locationmanager.util.b a]
01-16 21:34:17.197 13297 13297 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted
01-16 21:34:17.204 13297 13297 D TSLocationManager: [c.t.l.a.BackgroundGeolocation ready] LocationPermission :true
01-16 21:34:17.206 13297 13366 I TSLocationManager: [c.t.l.http.HttpService flush]
01-16 21:34:17.206 13297 13366 I TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:17.206 13297 13366 I TSLocationManager: ║ HTTP Service (count: 0)
01-16 21:34:17.206 13297 13366 I TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:17.223 13297 13370 I TSLocationManager: - Enable: true → true, trackingMode: 1
01-16 21:34:17.247 13297 13320 I flutter : [providerchange] - [ProviderChangeEvent enabled:true, status: 3, network: true, gps: true]
01-16 21:34:17.273 13297 13370 I TSLocationManager: [c.t.l.s.ActivityRecognitionService a]
01-16 21:34:17.273 13297 13370 I TSLocationManager: 🎾 Start motion-activity updates
01-16 21:34:17.290 13297 13370 I TSLocationManager: [c.t.l.g.TSGeofenceManager start]
01-16 21:34:17.290 13297 13370 I TSLocationManager: 🎾 Start monitoring geofences
01-16 21:34:17.296 13297 13370 D TSLocationManager: [c.t.l.http.HttpService startMonitoringConnectivityChanges]
01-16 21:34:17.296 13297 13370 D TSLocationManager: 🎾 Start monitoring connectivity changes
01-16 21:34:17.300 13297 13370 D TSLocationManager: [c.t.locationmanager.device.a c]
01-16 21:34:17.300 13297 13370 D TSLocationManager: 🎾 Start monitoring powersave changes
01-16 21:34:17.310 13297 13370 D TSLocationManager: [c.t.locationmanager.util.b b]
01-16 21:34:17.310 13297 13370 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted
01-16 21:34:17.314 13297 13370 I TSLocationManager: [c.t.l.service.HeartbeatService a]
01-16 21:34:17.314 13297 13370 I TSLocationManager: 🔴 Stop heartbeat
01-16 21:34:17.350 13297 13297 D TSLocationManager: [c.t.l.adapter.TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
01-16 21:34:17.484 13297 13346 I TSLocationManager: [c.t.l.s.LocationRequestService a]
01-16 21:34:17.484 13297 13346 I TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:17.484 13297 13346 I TSLocationManager: ║ getCurrentPosition LocationResult: 1
01-16 21:34:17.484 13297 13346 I TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:17.484 13297 13346 I TSLocationManager: ╟─ 📍 Location[fused 27.198218,78.038538 acc=16 et=+20m46s446ms {Bundle[{}]}], age: 33ms, time: 1579190657449
01-16 21:34:17.504 13297 13297 D TSLocationManager: [c.t.l.s.ActivityRecognitionService a]
01-16 21:34:17.504 13297 13297 D TSLocationManager: 🚘 ️DetectedActivity [type=STILL, confidence=100]
01-16 21:34:17.578 13297 13297 D TSLocationManager: [c.t.l.s.LocationRequestService onDestroy]
01-16 21:34:17.581 13297 13297 I TSLocationManager: [c.t.l.s.TSScheduleManager oneShot]
01-16 21:34:17.581 13297 13297 I TSLocationManager: ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
01-16 21:34:17.635 13297 13346 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult]
01-16 21:34:17.635 13297 13346 I TSLocationManager: 🔵 Acquired current position
01-16 21:34:17.636 13297 13346 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 16.0
01-16 21:34:17.665 13297 13346 D TSLocationManager: [c.t.l.s.LocationRequestService a] SingleLocationRequest 1 isFinished? true
01-16 21:34:17.666 13297 13297 I TSLocationManager: [c.t.l.s.ActivityRecognitionService a]
01-16 21:34:17.666 13297 13297 I TSLocationManager: 🎾 Start motion-activity updates
01-16 21:34:17.669 13297 13297 D TSLocationManager: [c.t.l.g.TSGeofenceManager startMonitoringStationaryRegion]
01-16 21:34:17.669 13297 13297 D TSLocationManager: 🎾 Start monitoring stationary region (radius: 150.0m 27.1982175,78.0385379 hAcc=16.0)
01-16 21:34:17.718 13297 13297 I TSLocationManager: [c.t.l.service.TrackingService h]
01-16 21:34:17.718 13297 13297 I TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:17.718 13297 13297 I TSLocationManager: ║ TrackingService motionchange: false
01-16 21:34:17.718 13297 13297 I TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:17.728 13297 13320 I flutter : [location] - [Location {is_moving: false, extras: {routeid: 1234}, activity: {confidence: 100, type: still}, odometer: 0.0, uuid: a903d802-
d0e9-453c-b21c-23f6cdead805, timestamp: 2020-01-16T16:04:17.449Z, battery: {is_charging: true, level: 0.91}, coords: {altitude: -1.0, heading: -1.0, latitude: 27.1982175, speed: -1.0
, accuracy: 16.0, longitude: 78.0385379}}]
01-16 21:34:17.740 13297 13297 D TSLocationManager: [c.t.l.s.ActivityRecognitionService a]
01-16 21:34:17.740 13297 13297 D TSLocationManager: 🚘 ️DetectedActivity [type=STILL, confidence=100]
01-16 21:34:17.745 13297 13320 I flutter : on location
01-16 21:34:17.750 13297 13320 I flutter : [motionchange] - [Location {is_moving: false, extras: {routeid: 1234}, activity: {confidence: 100, type: still}, odometer: 0.0, uuid: a903d
802-d0e9-453c-b21c-23f6cdead805, timestamp: 2020-01-16T16:04:17.449Z, battery: {is_charging: true, level: 0.91}, coords: {altitude: -1.0, heading: -1.0, latitude: 27.1982175, speed:
-1.0, accuracy: 16.0, longitude: 78.0385379}}]
01-16 21:34:17.843 13297 13297 D TSLocationManager: [c.t.l.s.ActivityRecognitionService a]
01-16 21:34:17.843 13297 13297 D TSLocationManager: 🚘 ️DetectedActivity [type=STILL, confidence=100]
01-16 21:34:17.973 13297 13297 D TSLocationManager: [c.t.l.service.TrackingService onDestroy]
01-16 21:34:17.973 13297 13297 D TSLocationManager: 🔴 TrackingService destroyed
01-16 21:34:18.845 13297 13297 D TSLocationManager: [c.t.l.s.ActivityRecognitionService onDestroy]
01-16 21:34:18.845 13297 13297 D TSLocationManager: 🔴 ActivityRecognitionService destroyed
01-16 21:34:27.696 13297 13346 I TSLocationManager: [c.t.l.scheduler.ScheduleEvent onOneShot]
01-16 21:34:27.696 13297 13346 I TSLocationManager: ╔═════════════════════════════════════════════
01-16 21:34:27.696 13297 13346 I TSLocationManager: ║ ⏰ OneShot event fired: TERMINATE_EVENT
01-16 21:34:27.696 13297 13346 I TSLocationManager: ╠═════════════════════════════════════════════
01-16 21:34:27.700 13297 13346 D TSLocationManager: [c.t.l.event.TerminateEvent ]
01-16 21:34:27.700 13297 13346 D TSLocationManager: ℹ️ TERMINATE_EVENT ignored (MainActivity is still active).

@christocracy
Copy link
Member

christocracy commented Jan 16, 2020

Your OS on this OnePlus device is likely blocking the Android BOOT_COMPLETED Intent.

Googling "Android OnePlus BOOT_COMPLETED", I find this

Also see http://dontkillmyapp.com

@christocracy
Copy link
Member

01-16 21:34:14.988 13297 13320 I flutter : [BackgroundGeolocation registerHeadlessTask] ‼️ ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized.

Have you Upgraded your 1.12 Android Project?

@christocracy
Copy link
Member

ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized.

This has nothing to do with your app not re-launching after boot.

@preritkhera
Copy link
Author

I have upgraded already but it is working like as it is

@preritkhera
Copy link
Author

I already checked out the link that you have posted in last reply,
So is there any solution for this problem?

@preritkhera
Copy link
Author

Hi waiting for your reply

@stale
Copy link

stale bot commented Apr 13, 2020

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.

@stale stale bot added the stale label Apr 13, 2020
@stale
Copy link

stale bot commented Apr 22, 2020

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

@stale stale bot closed this as completed Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants