Context.startForegroundService() did not then call Service.startForeground() on Android 8.1
Opened this issue · 29 comments
Your Environment
- Plugin version:1.8.0
- Platform: Android
- OS version: 8.1.0
- Device manufacturer / model: Pixel XL 2
- Nativescript version (
tns info
): 4.1.2 - Plugin config
{
debug: false,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
stationaryRadius: 10,
distanceFilter: 5,
activityRecognitionInterval: 5000,
notificationText: 'Loco service activated',
notificationIcon: 'drawable/ic_notification'
}
Expected Behavior
App shouldn't crash.
Actual Behavior
App crashes throwing Context.startForegroundService() did not then call Service.startForeground()
error.
This library is the only background service I'm using in the app so I'm assuming there's an issue here.
Steps to Reproduce
It's random, it happens every once in a while when putting the app to background and back to foreground.
Context
Nothing particular.
Debug logs
Fatal Exception: android.app.RemoteServiceException
Context.startForegroundService() did not then call Service.startForeground()
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2101)
android.os.Handler.dispatchMessage (Handler.java:108)
android.os.Looper.loop (Looper.java:166)
Do you have your license key configured?
I do, other than this error it works with the release apk.
Show me your code you’re using to control the plugin.
Below is the code I use to start the plugin.
if (platform.isAndroid) {
permissions.requestPermission([
android.Manifest.permission.ACCESS_FINE_LOCATION,
android.Manifest.permission.ACCESS_COARSE_LOCATION],
"We really need your location since it's a location based game ;)")
.then(() => {
// // 1. Listen to events
BackgroundGeolocation.on('location', this.onLocation.bind(this));
BackgroundGeolocation.on('motionchange', this.onMotionChange.bind(this));
BackgroundGeolocation.on('http', this.onHttp.bind(this));
BackgroundGeolocation.on('heartbeat', this.onHeartbeat.bind(this));
BackgroundGeolocation.on('error', this.onError.bind(this));
// 2. Configure it.
BackgroundGeolocation.configure({
debug: false,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
stationaryRadius: 25,
distanceFilter: 50,
activityRecognitionInterval: 10000,
notificationText: 'Loco service activated',
notificationIcon: 'drawable/ic_notification',
url: `${config.API_HOST}/v1/game/${this.rootStore.game._id}/player/${this.rootStore.game.gamePlayerId}/location`
}, (state) => {
// 3. Plugin is now ready to use.
if (!state.enabled) {
console.log('LOCATION STARTING');
BackgroundGeolocation.start();
}
});
});
}
You don’t need to worry about location permissions. The plugin handles that by itself.
This error can occur if you call #start and immediately #stop.
Thanks for the fast response. I did have that case in a while ago so that could be the reason for this error, have refactored a bit since to remove this. I still can't get the beta3 to work in release builds on 8.1 as mentioned in this issue, #117 .
Show $ adb logcat
of your app booting in release build.
I don’t need hours of logs.
I just want a snapshot of your app booting from scratch. Shouldn’t be more than 15 seconds of logs.
:) Just ran adb logcat
and this is what I got. Will reduce!
Logcat is a live stream of the logs.
- Just start the stream.
- Boot your app
- when app crashes, [ctrl][c].
I deleted your previous message.
It's what I just did in the last comment which you removed. I cleared all the history, started the logcat, started the app, pressed [ctrl][c] after launching the app and pasted here. App does not crash. The background service seems to never start. No notification is present for the service and the location is not working in the app.
If it doesn’t crash, show filtered plugin-only logs of your app booting.
$ adb logcat -s TSLocationManager
It's empty with 1.9.0beta4
. Reverting to the 1.8.0 version it prints:
08-04 14:31:14.646 12998 12998 I TSLocationManager: ╔═════════════════════════════════════════════
08-04 14:31:14.646 12998 12998 I TSLocationManager: ║ DEVICE SENSORS
08-04 14:31:14.646 12998 12998 I TSLocationManager: ╠═════════════════════════════════════════════
08-04 14:31:14.646 12998 12998 I TSLocationManager: ╟─ ✅ ACCELEROMETER: {Sensor name="LSM6DSM Accelerometer", vendor="STMicroelectronics", version=1, type=1, maxRange=156.9064, resolution=0.0023956299, power=0.15, minDelay=2500}
08-04 14:31:14.646 12998 12998 I TSLocationManager: ╟─ ✅ GYROSCOPE: {Sensor name="LSM6DSM Gyroscope", vendor="STMicroelectronics", version=1, type=4, maxRange=17.453293, resolution=0.0012207031, power=0.45, minDelay=2500}
08-04 14:31:14.646 12998 12998 I TSLocationManager: ╟─ ✅ MAGNETOMETER: {Sensor name="AK09915 Magnetometer", vendor="AKM", version=1, type=2, maxRange=5160.0005, resolution=0.14953613, power=1.8, minDelay=10000}
08-04 14:31:14.646 12998 12998 I TSLocationManager: ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="Significant Motion", vendor="Google", version=2, type=17, maxRange=1.0, resolution=1.0, power=0.25, minDelay=-1}
08-04 14:31:14.646 12998 12998 I TSLocationManager: ╚═════════════════════════════════════════════
08-04 14:31:14.679 12998 12998 I TSLocationManager: [c.t.l.a.BackgroundGeolocation <init>]
08-04 14:31:14.679 12998 12998 I TSLocationManager: ╔═════════════════════════════════════════════
08-04 14:31:14.679 12998 12998 I TSLocationManager: ║ BackgroundGeolocation adapter
08-04 14:31:14.679 12998 12998 I TSLocationManager: ╠═════════════════════════════════════════════
08-04 14:31:14.711 12998 12998 I TSLocationManager: [c.t.l.a.BackgroundGeolocation <init>]
08-04 14:31:14.711 12998 12998 I TSLocationManager: ✅ Google Play Services: connected (version code:12451000)
08-04 14:31:14.741 12998 12998 D TSLocationManager: [c.t.l.d.s.SQLiteLocationDAO dbh]
08-04 14:31:14.741 12998 12998 D TSLocationManager: ✅ Opened database
08-04 14:31:14.767 12998 12998 D TSLocationManager: [c.t.l.d.s.SQLiteLocationDAO prune]
08-04 14:31:14.767 12998 12998 D TSLocationManager: ℹ️ PRUNE -1 days
08-04 14:31:14.802 12998 12998 D TSLocationManager: [c.t.l.data.sqlite.GeofenceDAO dbh]
08-04 14:31:14.802 12998 12998 D TSLocationManager: ✅ Opened database
08-04 14:31:14.836 12998 12998 I TSLocationManager: [c.t.l.a.BackgroundGeolocation <init>]
08-04 14:31:14.836 12998 12998 I TSLocationManager: 🔵 Connecting to GooglePlayServices...
08-04 14:31:14.877 12998 12998 I TSLocationManager: [c.t.l.a.BackgroundGeolocation onActivityDestroy]
08-04 14:31:14.877 12998 12998 I TSLocationManager: ╔═════════════════════════════════════════════
08-04 14:31:14.877 12998 12998 I TSLocationManager: ║ MainActivity was destroyed
08-04 14:31:14.877 12998 12998 I TSLocationManager: ╠═════════════════════════════════════════════
08-04 14:31:14.877 12998 12998 I TSLocationManager: ╟─ stopOnTerminate: true
08-04 14:31:14.877 12998 12998 I TSLocationManager: ╟─ enabled: false
08-04 14:31:14.921 12998 12998 I TSLocationManager: [c.t.l.l.TSLocationManager stopWatchPosition]
08-04 14:31:14.921 12998 12998 I TSLocationManager: 🔴 watchPosition: OFF
08-04 14:31:14.944 12998 12998 D TSLocationManager: [c.t.l.a.BackgroundGeolocation e]
08-04 14:31:14.944 12998 12998 D TSLocationManager: 🔴 Cleared callbacks
08-04 14:31:35.920 12998 13459 I TSLocationManager: [c.t.l.settings.Settings print]
08-04 14:31:35.920 12998 13459 I TSLocationManager: ╔═════════════════════════════════════════════
08-04 14:31:35.920 12998 13459 I TSLocationManager: ║ BackgroundGeolocation Settings
08-04 14:31:35.920 12998 13459 I TSLocationManager: ╠═════════════════════════════════════════════
08-04 14:31:35.920 12998 13459 I TSLocationManager: {
08-04 14:31:35.920 12998 13459 I TSLocationManager: "isMoving": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "enabled": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "odometer": 0,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "schedulerEnabled": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "trackingMode": "location",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "distanceFilter": 50,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "desiredAccuracy": 0,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "desiredOdometerAccuracy": 100,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "locationUpdateInterval": 1000,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "fastestLocationUpdateInterval": 10000,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "locationTimeout": 60,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "deferTime": 0,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "disableElasticity": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "elasticityMultiplier": 1,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "allowIdenticalLocations": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "activityRecognitionInterval": 10000,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "minimumActivityRecognitionConfidence": 75,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "disableStopDetection": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "stationaryRadius": 25,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "stopTimeout": 5,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "stopOnStationary": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "url": "https:\/\/api.locogames.live\/v1\/game\/5b658522d5d19105a4adf75d\/player\/5b659ca8d5d19105a4b8fe4a\/location",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "method": "POST",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "autoSync": true,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "autoSyncThreshold": 0,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "batchSync": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "maxBatchSize": -1,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "params": {},
08-04 14:31:35.920 12998 13459 I TSLocationManager: "headers": {},
08-04 14:31:35.920 12998 13459 I TSLocationManager: "extras": {},
08-04 14:31:35.920 12998 13459 I TSLocationManager: "httpRootProperty": "location",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "locationTemplate": "",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "geofenceTemplate": "",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "persist": true,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "maxDaysToPersist": 1,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "maxRecordsToPersist": -1,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "locationsOrderDirection": "ASC",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "httpTimeout": 60000,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "geofenceProximityRadius": 1000,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "geofenceInitialTriggerEntry": true,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "stopOnTerminate": true,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "startOnBoot": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "heartbeatInterval": -1,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "foregroundService": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "notificationPriority": 0,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "notificationTitle": "",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "notificationText": "Loco service activated",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "notificationColor": "",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "notificationIcon": "drawable\/ic_notification",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "notificationSmallIcon": "",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "notificationLargeIcon": "",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "forceReloadOnLocationChange": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "forceReloadOnMotionChange": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "forceReloadOnGeofence": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "forceReloadOnBoot": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "forceReloadOnHeartbeat": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "forceReloadOnSchedule": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "stopAfterElapsedMinutes": 0,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "schedule": [],
08-04 14:31:35.920 12998 13459 I TSLocationManager: "configureUrl": "",
08-04 14:31:35.920 12998 13459 I TSLocationManager: "configureInterval": -1,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "debug": false,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "logLevel": 5,
08-04 14:31:35.920 12998 13459 I TSLocationManager: "logMaxDays": 3
08-04 14:31:35.920 12998 13459 I TSLocationManager: }╚═════════════════════════════════════════════
Add config: {
logLevel: 5,
debug: true
}
Still nothing in the log ($ adb logcat -s TSLocationManager
)
Log output:
release $adb logcat -s TSLocationManager
--------- beginning of system
--------- beginning of crash
--------- beginning of main
Setup:
BackgroundGeolocation.ready({
logLevel: 5,
debug: true,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
stationaryRadius: 25,
distanceFilter: 50,
activityRecognitionInterval: 10000,
notificationText: 'Loco service activated',
notificationIcon: 'drawable/ic_notification',
url: `${config.API_HOST}/v1/game/${this.rootStore.game._id}/player/${this.rootStore.game.gamePlayerId}/location`
}, (state) => {
// 3. Plugin is now ready to use.
if (!state.enabled) {
BackgroundGeolocation.start();
}
});
Same configuration just changing ready
to configure
works on 1.8.0.
Read the docs very carefully for new #ready
method.
After modifying config, you must provide reset: true
in order for it to be applied after first install.
Made a new build with below config which includes reset:true
. But no change. The log is still empty using adb logcat -s TSLocationManager
.
BackgroundGeolocation.ready({
logLevel: 5,
reset: true,
debug: true,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
stationaryRadius: 25,
distanceFilter: 50,
activityRecognitionInterval: 10000,
notificationText: 'Loco service activated',
notificationIcon: 'drawable/ic_notification',
url: `${config.API_HOST}/v1/game/${this.rootStore.game._id}/player/${this.rootStore.game.gamePlayerId}/location`
}, (state) => {
// 3. Plugin is now ready to use.
if (!state.enabled) {
BackgroundGeolocation.start();
}
});
});
$ adb logcat
08-04 16:32:56.742 1822 1822 E QtiImsExtUtils: getConfigForPhoneId phoneId is invalid
08-04 16:32:56.742 1822 1822 E QtiImsExtUtils: isCarrierConfigEnabled bundle is null
08-04 16:32:56.776 777 820 I CHRE : @ 551023.688: [AR_CHRE] still: 98
08-04 16:32:56.776 777 820 I CHRE : @ 551023.688: [AR_CHRE] ON => IDLE
08-04 16:32:57.102 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:57.102 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:57.103 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:57.103 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:57.103 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:57.103 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:57.103 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:57.103 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:57.104 1822 1822 E QtiImsExtUtils: getConfigForPhoneId phoneId is invalid
08-04 16:32:57.104 1822 1822 E QtiImsExtUtils: isCarrierConfigEnabled bundle is null
08-04 16:32:57.133 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:32:57.133 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 48000 mC, weight[1] -1
08-04 16:32:58.098 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:58.098 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:58.098 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:58.098 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:58.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:58.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:58.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:58.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:58.135 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:32:58.135 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 47000 mC, weight[1] -1
08-04 16:32:59.098 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:59.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:59.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:59.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:59.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:59.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:59.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:32:59.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:32:59.130 2360 4847 W ctxmgr : [AclManager]No 2 for (accnt=account#-517948760#, com.google.android.gms(10010):IndoorOutdoorProducer, vrsn=12874000, 0, 3pPkg = null , 3pMdlId = null , pid = 2360). Was: 3 for 57, account#-517948760#
08-04 16:32:59.136 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 46000 mC, weight[0] 1
08-04 16:32:59.136 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 47000 mC, weight[1] -1
08-04 16:33:00.097 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:33:00.097 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:33:00.097 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:33:00.097 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:33:00.097 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:33:00.097 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:33:00.097 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:33:00.097 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:33:00.137 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:33:00.138 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 48000 mC, weight[1] -1
08-04 16:33:00.603 1112 25233 I GnssLocationProvider: WakeLock acquired by sendMessage(SET_REQUEST, 0, com.android.server.location.GnssLocationProvider$GpsRequest@282feb4)
08-04 16:33:00.604 1112 1135 I GnssLocationProvider: WakeLock released by handleMessage(SET_REQUEST, 0, com.android.server.location.GnssLocationProvider$GpsRequest@282feb4)
08-04 16:33:00.608 1112 19451 I GnssLocationProvider: WakeLock acquired by sendMessage(SET_REQUEST, 0, com.android.server.location.GnssLocationProvider$GpsRequest@eb6d652)
08-04 16:33:00.618 1112 1135 I GnssLocationProvider: WakeLock released by handleMessage(SET_REQUEST, 0, com.android.server.location.GnssLocationProvider$GpsRequest@eb6d652)
08-04 16:33:00.664 1112 19451 I WifiService: acquireWifiLock uid=10010 lockMode=2
08-04 16:33:00.734 1112 19450 I WifiService: releaseWifiLock uid=10010
08-04 16:33:00.842 1112 1121 I zygote64: Background concurrent copying GC freed 61377(2MB) AllocSpace objects, 2(44KB) LOS objects, 33% free, 47MB/71MB, paused 106us total 196.658ms
08-04 16:33:01.139 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 48000 mC, weight[0] 1
08-04 16:33:01.139 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 48000 mC, weight[1] -1
08-04 16:33:01.707 1822 1822 E QtiImsExtUtils: getConfigForPhoneId phoneId is invalid
08-04 16:33:01.707 1822 1822 E QtiImsExtUtils: isCarrierConfigEnabled bundle is null
08-04 16:33:02.140 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:33:02.140 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 48000 mC, weight[1] -1
08-04 16:33:02.537 1112 25233 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=app.loco/com.tns.NativeScriptActivity bnds=[585,336][854,730]} from uid 10052
08-04 16:33:02.549 762 762 D QCOM PowerHAL: LAUNCH HINT: ON
08-04 16:33:02.551 762 762 D QCOM PowerHAL: Activity launch hint handled
08-04 16:33:02.585 1112 1618 I ActivityManager: Start proc 5850:app.loco/u0a1140 for activity app.loco/com.tns.NativeScriptActivity
08-04 16:33:02.664 746 8313 D sound_trigger_hw: stdev_stop_recognition:[53] Enter
08-04 16:33:02.664 746 8313 D sound_trigger_hw: active_state_fn:[53] handle event id 7
08-04 16:33:02.664 746 8313 D sound_trigger_hw: active_state_fn:[53] unhandled event
08-04 16:33:02.664 746 8313 D sound_trigger_hw: active_state_fn:[53] handle event id 4
08-04 16:33:02.664 746 8313 D sound_trigger_hw: stop:[53] gcs stop VA engine, size=24
08-04 16:33:02.673 5850 5850 W ActivityThread: Application app.loco can be debugged on port 8100...
08-04 16:33:02.674 746 8313 D sound_trigger_hw: stop:[53] calling gcs_disable with handle 55
08-04 16:33:02.674 746 8313 E : __gcs_disable_update_pld: sgt_array[i] = 0x1
08-04 16:33:02.674 746 8313 E : __gcs_disable_update_pld: sgt_array[i] = 0x2
08-04 16:33:02.680 746 8313 D sound_trigger_hw: session[53]: active_state_fn ---> loaded_state_fn
08-04 16:33:02.680 746 8313 D sound_trigger_hw: dereg_hal_event_session: ST_EVENT_SESSION_DEREGISTER capture_handle 1246 p_ses 0xf6613800
08-04 16:33:02.680 746 8313 D sound_trigger_hw: stdev_stop_recognition:[53] Exit status 0
08-04 16:33:02.680 28740 28740 I GsaVoiceInteractionSrv: Stop Hotword Recognition status: true
08-04 16:33:02.784 5850 5850 I CrashlyticsCore: Initializing Crashlytics 2.6.3.25
08-04 16:33:02.798 5850 5850 I CrashlyticsInitProvider: CrashlyticsInitProvider initialization successful
08-04 16:33:02.822 5850 5850 D FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
08-04 16:33:02.822 5850 5850 I FirebaseInitProvider: FirebaseApp initialization successful
08-04 16:33:02.837 5850 5865 D NetworkSecurityConfig: No Network Security Config specified, using platform default
08-04 16:33:02.916 5850 5850 I TNS.Native: NativeScript Runtime Version 4.1.3, commit 632911c2d9531f2fa5cd83e502200f9f3e0a4233
08-04 16:33:02.916 5850 5850 D TNS.Native: JNI_ONLoad
08-04 16:33:02.916 5850 5850 D TNS.Native: JNI_ONLoad END
08-04 16:33:02.934 5850 5880 I FA : App measurement is starting up, version: 12451
08-04 16:33:02.934 5850 5880 I FA : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
08-04 16:33:02.934 5850 5880 I FA : To enable faster debug mode event logging run:
08-04 16:33:02.934 5850 5880 I FA : adb shell setprop debug.firebase.analytics.app app.loco
08-04 16:33:02.945 5850 5850 D TNS.Native: Snapshot enabled.
08-04 16:33:02.945 5850 5850 D TNS.Native: Snapshot read /data/data/app.loco/files/snapshots/armeabi-v7a/snapshot.blob (5524892B).
08-04 16:33:02.980 5850 5850 D TNS.Native: V8 version 6.6.346.23
08-04 16:33:03.001 5850 5850 D TNS.Native: lenNodes=135444, lenNames=1052657, lenValues=1587675
08-04 16:33:03.001 5850 5850 D TNS.Native: time=10
08-04 16:33:03.115 1746 1746 I WallpaperService: engine paused
08-04 16:33:03.119 777 820 D CHRE : @ 551030.000: -: id 10, otherClientPresent 0, mode 3
08-04 16:33:03.120 777 820 D CHRE : @ 551030.000: [ImuCal] Dynamic sensor configuration: stand-by.
08-04 16:33:03.120 777 820 D CHRE : @ 551030.000: sensorType 9 allowed 1: mergedMode 3, otherClientPresent 1
08-04 16:33:03.121 777 820 D CHRE : @ 551030.000: sensorType 11 allowed 1: mergedMode 3, otherClientPresent 1
08-04 16:33:03.122 777 820 D CHRE : @ 551030.000: sensorType 13 allowed 0: mergedMode 3, otherClientPresent 0
08-04 16:33:03.141 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 48000 mC, weight[0] 1
08-04 16:33:03.141 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 50000 mC, weight[1] -1
08-04 16:33:03.468 5850 5850 W zygote : Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
08-04 16:33:03.581 5850 5901 D libEGL : loaded /vendor/lib/egl/libEGL_adreno.so
08-04 16:33:03.622 5850 5901 D libEGL : loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
08-04 16:33:03.636 5850 5901 D libEGL : loaded /vendor/lib/egl/libGLESv2_adreno.so
08-04 16:33:03.668 5850 5850 D FirebasePluginCB: Unregistering the activity lifecycle callbacks...
08-04 16:33:03.668 5850 5850 D FirebasePluginCB: Registering the activity lifecycle callbacks...
08-04 16:33:03.700 5850 5850 D FirebasePlugin: onActivityResumed: Application has been started
08-04 16:33:03.701 5850 5880 I FA : Tag Manager is not found and thus will not be used
08-04 16:33:03.707 5850 5903 D OpenGLRenderer: HWUI GL Pipeline
08-04 16:33:03.717 5850 5855 I zygote : Do partial code cache collection, code=30KB, data=24KB
08-04 16:33:03.717 5850 5855 I zygote : After code cache collection, code=30KB, data=24KB
08-04 16:33:03.717 5850 5855 I zygote : Increasing code cache capacity to 128KB
08-04 16:33:04.139 5850 5850 W zygote : Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
08-04 16:33:04.143 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:33:04.143 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 50000 mC, weight[1] -1
08-04 16:33:04.242 5850 5850 W zygote : Opening an oat file without a class loader. Are you using the deprecated DexFile APIs?
08-04 16:33:04.457 1822 1822 E QtiImsExtUtils: getConfigForPhoneId phoneId is invalid
08-04 16:33:04.457 1822 1822 E QtiImsExtUtils: isCarrierConfigEnabled bundle is null
08-04 16:33:04.612 5850 5903 I Adreno : QUALCOMM build : 594927b, I916dfac403
08-04 16:33:04.612 5850 5903 I Adreno : Build Date : 10/11/17
08-04 16:33:04.612 5850 5903 I Adreno : OpenGL ES Shader Compiler Version: EV031.21.02.00
08-04 16:33:04.612 5850 5903 I Adreno : Local Branch : mybranch28618966
08-04 16:33:04.612 5850 5903 I Adreno : Remote Branch : quic/gfx-adreno.lnx.6.4.9-rel
08-04 16:33:04.612 5850 5903 I Adreno : Remote Branch : NONE
08-04 16:33:04.612 5850 5903 I Adreno : Reconstruct Branch : NOTHING
08-04 16:33:04.634 5850 5903 I Adreno : PFP: 0x005ff087, ME: 0x005ff063
08-04 16:33:04.667 5850 5903 I zygote : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 1
08-04 16:33:04.668 5850 5903 I OpenGLRenderer: Initialized EGL, version 1.4
08-04 16:33:04.668 5850 5903 D OpenGLRenderer: Swap behavior 2
08-04 16:33:04.747 762 762 D QCOM PowerHAL: LAUNCH HINT: OFF
08-04 16:33:04.757 1112 1143 I ActivityManager: Displayed app.loco/com.tns.NativeScriptActivity: +2s188ms
08-04 16:33:04.889 28697 28697 I StreamRenderer: cleanUpRendererScope(nowcards-3627505901186291971)
08-04 16:33:04.905 28697 1959 I PBSessionCacheImpl: Deleted sessionId[13003315001387] from persistence.
08-04 16:33:04.916 28697 28697 W SearchServiceCore: Abort, client detached.
08-04 16:33:04.924 1112 6246 I WifiService: getConnectionInfo uid=10047
08-04 16:33:04.926 1112 6246 I WifiService: getWifiEnabledState uid=10047
08-04 16:33:04.927 28697 28697 W SearchServiceCore: Abort, client detached.
08-04 16:33:04.930 28697 28697 I StreamController: cleanUpControllerScope(nowcards-3627505901186291971)
08-04 16:33:04.931 28697 28697 W SearchServiceCore: Abort, client detached.
08-04 16:33:05.145 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:33:05.146 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 49000 mC, weight[1] -1
08-04 16:33:05.245 5850 5917 D skia : --- SkAndroidCodec::NewFromStream returned null
08-04 16:33:05.341 1786 1886 I QCNEJ/CndHalConnector: -> SND notifyWifiStatusChanged(RatInfo{type=1, subType=101, state=CONNECTED, v4=IfaceAddrPair{iface=wlan0, addr=192.168.2.9}, v6=IfaceAddrPair{iface=, addr=}, timestamp=2018-08-04 16:33:05.341, isAndroidValidated=true, netHandle=1653578844894, slotIdx=0} WifiInfo{freq=FIVE_GHz, state=3, ssid=APX_1floor, bssid=20:bb:c0:e6:e6:0d, dns=[8.8.8.8, 8.8.4.4, 0.0.0.0, 0.0.0.0, ]})
08-04 16:33:05.824 810 940 D ThermalEngine: handle_timer_sig: SS Id SKIN-MID-LOW-FLOOR2 Read bd_therm2 41000mC, Err -1000mC, SampleCnt 1
08-04 16:33:05.825 810 940 D ThermalEngine: handle_timer_sig: SS Id SKIN-MID-FLOOR2 Read bd_therm2 41000mC, Err -3000mC, SampleCnt 1
08-04 16:33:05.971 5850 5855 I zygote : Do partial code cache collection, code=58KB, data=47KB
08-04 16:33:05.971 5850 5855 I zygote : After code cache collection, code=58KB, data=47KB
08-04 16:33:05.971 5850 5855 I zygote : Increasing code cache capacity to 256KB
08-04 16:33:06.147 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:33:06.148 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 49000 mC, weight[1] -1
08-04 16:33:06.552 621 621 D SurfaceFlinger: duplicate layer name: changing app.loco/com.tns.NativeScriptActivity to app.loco/com.tns.NativeScriptActivity#1
08-04 16:33:06.705 1822 1822 E QtiImsExtUtils: getConfigForPhoneId phoneId is invalid
08-04 16:33:06.705 1822 1822 E QtiImsExtUtils: isCarrierConfigEnabled bundle is null
08-04 16:33:07.149 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 46000 mC, weight[0] 1
08-04 16:33:07.149 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 48000 mC, weight[1] -1
08-04 16:33:07.219 5850 5930 D skia : --- SkAndroidCodec::NewFromStream returned null
08-04 16:33:08.150 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:33:08.150 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 49000 mC, weight[1] -1
08-04 16:33:08.245 5850 5855 I zygote : Do full code cache collection, code=122KB, data=84KB
08-04 16:33:08.245 5850 5855 I zygote : After code cache collection, code=91KB, data=55KB
08-04 16:33:08.359 5850 5850 I zzbz : Making Creator dynamically
08-04 16:33:08.380 5850 5850 W zygote : Unsupported class loader
08-04 16:33:08.389 5850 5850 W zygote : Skipping duplicate class check due to unsupported classloader
08-04 16:33:08.391 5850 5850 I DynamiteModule: Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:220
08-04 16:33:08.391 5850 5850 I DynamiteModule: Selected remote version of com.google.android.gms.maps_dynamite, version >= 220
08-04 16:33:08.412 5850 5850 W zygote : Unsupported class loader
08-04 16:33:08.510 5850 5850 I Google Maps Android API: Google Play services client version: 12451000
08-04 16:33:08.518 5850 5850 I Google Maps Android API: Google Play services package version: 12874032
08-04 16:33:08.665 5850 5850 E zygote : The String#value field is not present on Android versions >= 6.0
08-04 16:33:08.903 5850 5936 D skia : --- SkAndroidCodec::NewFromStream returned null
08-04 16:33:08.921 1112 1465 D RecurrenceRule: Resolving using anchor 2018-08-04T16:33:08.920+02:00[Europe/Berlin]
08-04 16:33:08.922 1112 1465 D RecurrenceRule: Resolving using anchor 2018-08-04T16:33:08.922+02:00[Europe/Berlin]
08-04 16:33:08.924 1112 1465 D RecurrenceRule: Cycle 18 from 2018-07-24T00:00+02:00[Europe/Berlin] to 2018-08-24T00:00+02:00[Europe/Berlin]
08-04 16:33:08.924 1112 1465 D NetworkStats: Resolving plan for NetworkTemplate: matchRule=MOBILE_ALL, subscriberId=293400..., matchSubscriberIds=[293400...]
08-04 16:33:08.926 1112 1465 D NetworkStats: Found active matching subId 1
08-04 16:33:08.932 1112 1465 D NetworkStats: Resolved to plan null
08-04 16:33:09.152 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 47000 mC, weight[0] 1
08-04 16:33:09.152 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 50000 mC, weight[1] -1
08-04 16:33:09.191 5850 5850 I zygote : Deoptimizing void org.nativescript.widgets.MeasureHelper.measureChildFixedColumnsAndRows(org.nativescript.widgets.MeasureSpecs) due to JIT inline cache
08-04 16:33:09.191 5850 5850 I zygote : Deoptimizing void org.nativescript.widgets.MeasureHelper.measureChildFixedColumnsAndRows(org.nativescript.widgets.MeasureSpecs) due to JIT inline cache
08-04 16:33:09.192 5850 5855 I zygote : Do partial code cache collection, code=124KB, data=81KB
08-04 16:33:09.192 5850 5855 I zygote : After code cache collection, code=122KB, data=80KB
08-04 16:33:09.192 5850 5855 I zygote : Increasing code cache capacity to 512KB
08-04 16:33:09.211 5850 5850 I Choreographer: Skipped 60 frames! The application may be doing too much work on its main thread.
08-04 16:33:09.767 5850 5855 I zygote : Do full code cache collection, code=249KB, data=190KB
08-04 16:33:09.768 5850 5855 I zygote : After code cache collection, code=197KB, data=138KB
08-04 16:33:09.843 1112 6246 I GnssLocationProvider: WakeLock acquired by sendMessage(SET_REQUEST, 0, com.android.server.location.GnssLocationProvider$GpsRequest@d360d3c)
08-04 16:33:09.849 1112 1135 I GnssLocationProvider: WakeLock released by handleMessage(SET_REQUEST, 0, com.android.server.location.GnssLocationProvider$GpsRequest@d360d3c)
08-04 16:33:09.881 777 820 D CHRE : @ 551036.812: +: id 20, otherClientPresent 1, mode 3
08-04 16:33:09.887 777 820 D CHRE : @ 551036.812: +: id 10, otherClientPresent 1, mode 3
08-04 16:33:09.889 777 820 D CHRE : @ 551036.812: [ImuCal] Dynamic sensor configuration: high-performance.
08-04 16:33:09.889 777 820 D CHRE : @ 551036.812: sensorType 9 allowed 1: mergedMode 3, otherClientPresent 1
08-04 16:33:09.891 777 820 D CHRE : @ 551036.812: sensorType 11 allowed 1: mergedMode 3, otherClientPresent 1
08-04 16:33:09.892 777 820 D CHRE : @ 551036.812: sensorType 13 allowed 1: mergedMode 3, otherClientPresent 1
08-04 16:33:09.903 1112 25233 I WifiService: acquireWifiLock uid=10010 lockMode=2
08-04 16:33:09.967 5850 5855 I zygote : Do partial code cache collection, code=240KB, data=166KB
08-04 16:33:09.967 5850 5855 I zygote : After code cache collection, code=240KB, data=166KB
08-04 16:33:09.967 5850 5855 I zygote : Increasing code cache capacity to 1024KB
08-04 16:33:09.984 2360 5566 E ctxmgr : [AppIntervalImpl]closeInterval: ongoing
08-04 16:33:09.984 2360 5566 E ctxmgr : [AppIntervalImpl]closeInterval: ongoing
08-04 16:33:09.990 777 820 D ASH : @ 551036.875: AP has been up: last 550733116963, now 551036893961 usec
08-04 16:33:09.992 777 820 D ASH : @ 551036.875: Sending to ASH storage: 0 369 0
08-04 16:33:10.004 1112 1618 W ContextHubService: Sending msg of type 0 len 10 to app 476f6f676c00100b on hub 0
08-04 16:33:10.005 750 750 V ContextHubHal: sendMessageToHub
08-04 16:33:10.006 777 820 D CHRE : @ 551036.938: Parsed nanoapp message from host: app ID 0x476f6f676c00100b, endpoint 0x2950, msgType 0, payload size 10
08-04 16:33:10.006 777 820 I CHRE : @ 551036.938: [AR_CHRE] request.flush
08-04 16:33:10.006 777 820 I CHRE : @ 551036.938: [AR_CHRE] send to host, reason=3, sampleSize=3, transitionSize=0
08-04 16:33:10.007 1112 1430 D ContextHubService: Sending message 1025 version 0 from hubHandle 0, appInstance 1, callBackCount 1
08-04 16:33:10.037 2360 3732 I Places : ?: PlacesBleScanner start() with priority 2
08-04 16:33:10.048 3326 3326 I ActivityUpsampling: Received intent
08-04 16:33:10.048 3326 3326 I ActivityUpsampling: Initialize ActivityUpsamplingManager
08-04 16:33:10.053 2360 3732 I Places : ?: PlacesBleScanner start() with priority 2
08-04 16:33:10.054 2360 3732 I PlaceInferenceEngine: [anon] Changed inference mode: 1
08-04 16:33:10.054 2360 3732 I PlaceInferenceEngine: [account#-1907418968] Changed inference mode: 1
08-04 16:33:10.058 3326 3326 I ActivityUpsampling: Scheduling async work
08-04 16:33:10.059 3326 5676 I ActivityUpsampling: Starting async work
08-04 16:33:10.059 3326 5676 I ActivityUpsampling: Processing AR result
08-04 16:33:10.068 3326 5676 I ActivityUpsampling: Recording event
08-04 16:33:10.092 2360 3732 I Places : Converted 22 out of 22 WiFi scans
08-04 16:33:10.093 1112 1618 I WifiService: getConnectionInfo uid=10010
08-04 16:33:10.126 2360 5566 I PlaceInferenceEngine: No beacon scan available - ignoring candidates.
08-04 16:33:10.128 2360 2360 W ChimeraUtils: Non Chimera context
08-04 16:33:10.129 2360 2360 W ChimeraUtils: Non Chimera context
08-04 16:33:10.153 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 50000 mC, weight[0] 1
08-04 16:33:10.153 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 53000 mC, weight[1] -1
08-04 16:33:10.194 5850 5850 I zygote : Deoptimizing void com.airbnb.lottie.animation.content.BaseStrokeContent.draw(android.graphics.Canvas, android.graphics.Matrix, int) due to JIT inline cache
08-04 16:33:10.268 2360 5566 I PlaceInferenceEngine: No beacon scan available - ignoring candidates.
08-04 16:33:10.276 2360 4845 W ctxmgr : [AclManager]No 2 for (accnt=account#-517948760#, com.google.android.gms(10010):PlacesProducer, vrsn=12874000, 0, 3pPkg = null , 3pMdlId = null , pid = 2360). Was: 3 for 18, account#-517948760#
08-04 16:33:10.412 3326 5676 I ActivityUpsampling: Autodetect event inserted: DataPoint{[1, 4]@[0, 1533393190068000000,raw=0,insert=0](r:android.apps.fitness.autodetect.event:com.google.android.apps.fitness:autodetect_events N/A)}
08-04 16:33:10.412 3326 5676 I ActivityUpsampling: AR upsampling state transition NORMAL_STATE --> NORMAL_STATE, activity: unknown
08-04 16:33:10.420 3326 5676 I Fit:LocationProvider: Stopping the high fidelity fg service
08-04 16:33:10.421 3326 5676 I Fit:LocationProvider: Location recording changed to : STOP_HIGH_FIDELITY_RECORDING.
08-04 16:33:10.424 3326 5676 I ActivityUpsampling: Finishing async work
08-04 16:33:10.983 5850 5972 W DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
08-04 16:33:10.990 5850 5972 I DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
08-04 16:33:10.990 5850 5972 I DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 4
08-04 16:33:10.998 5850 5972 W zygote : Unsupported class loader
08-04 16:33:11.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:33:11.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:33:11.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:33:11.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:33:11.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:33:11.099 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:33:11.100 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3497]: there is no valid SV measurements
08-04 16:33:11.100 755 1774 E LocSvc_ApiV02: reportGnssMeasurementData:3516]: There is no GNSS measurement.
08-04 16:33:11.106 2360 5985 W ctxmgr : [AclManager]No 2 for (accnt=account#-517948760#, com.google.android.gms(10010):IndoorOutdoorProducer, vrsn=12874000, 0, 3pPkg = null , 3pMdlId = null , pid = 2360). Was: 3 for 57, account#-517948760#
08-04 16:33:11.155 810 935 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor13 49000 mC, weight[0] 1
08-04 16:33:11.155 810 935 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 50000 mC, weight[1] -1
There is no sign of the plugin in your logs. You are not executing #ready
So as I've mentioned in this comment: #117 (comment)
Code execution stops/fails at the first reference to BackgroundGeolocation. In my case that line is >BackgroundGeolocation.on('location', this.onLocation.bind(this)); without any errors thrown.
console.log('Before first reference');
// WITH VERSION 1.9.0x this line logs as expected
BackgroundGeolocation.on('location', this.onLocation.bind(this));
BackgroundGeolocation.on('motionchange', this.onMotionChange.bind(this));
BackgroundGeolocation.on('http', this.onHttp.bind(this));
BackgroundGeolocation.on('heartbeat', this.onHeartbeat.bind(this));
BackgroundGeolocation.on('error', this.onError.bind(this));
console.log('After first reference');
// WITH VERSION 1.9.0x and with release build this line is never reached and no error is thrown, with version 1.8.0 release build I don't have this problem
// 2. Configure it.
BackgroundGeolocation.ready({
logLevel: 5,
reset: true,
debug: true,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
stationaryRadius: 25,
distanceFilter: 50,
activityRecognitionInterval: 10000,
notificationText: 'Loco service activated',
notificationIcon: 'drawable/ic_notification',
url: `${config.API_HOST}/v1/game/${this.rootStore.game._id}/player/${this.rootStore.game.gamePlayerId}/location`
}, (state) => {
// 3. Plugin is now ready to use.
if (!state.enabled) {
console.log('LOCATION STARTING');
BackgroundGeolocation.start();
}
});
You must not have the plugin installed correctly or you have a problem with your environment.
If you
console.log('----------- BackgroundGeolocation: ', BackgroundGeolocation)
You'll likely find that it's undefined
$ tns info
It works with $ tns run android
though. Silently fails just with the release build.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 4.1.2 version and is up to date.
✔ Component tns-core-modules has 4.2.0-2018-07-23-02 version and is up to date.
✔ Component tns-android has 4.1.3 version and is up to date.
✔ Component tns-ios has 4.1.0 version and is up to date.
I just produced a release apk of the demo app. It works fine.
Do you explicitly set minifyEnabled true
in your Android build.gradle
?
Attached is my release apk. NOTE I had to change the .apk
-> .zip
to allow Github to upload the attachement. This is NOT a zip file. Just rename it to release.apk
and install it.
$ mv nativescript-demo.zip release.apk
$ adb install release.apk
Thanks for the build. This works. My app/App_Resources/Android/app.gradle
below. I'm still puzzled why the 1.8.0 would work and not the 1.9 versions.
// Add your native dependencies here:
// Uncomment to add recyclerview-v7 dependency
//dependencies {
// compile 'com.android.support:recyclerview-v7:+'
//}
android {
compileSdkVersion 26
defaultConfig {
generatedDensities = []
applicationId = "app.loco"
multiDexEnabled true
minSdkVersion 19
targetSdkVersion 26
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
dexOptions {
javaMaxHeapSize "4g"
}
project.ext {
googlePlayServicesVersion = "15.0.1"
supportVersion = "27.0.1"
}
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '27.1.1'
}
}
}
}
Also platforms/android/build.gradle
:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { url "https://maven.fabric.io/public" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath "com.google.gms:google-services:4.0.1"
classpath "io.fabric.tools:gradle:1.25.1"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Show me the first 5 chars of your license key.
1af76
We're also seeing this happen (infrequently).
System.err: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()
System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1768)
System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
System.err: at android.os.Looper.loop(Looper.java:164)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6494)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
We are also seeing this error, any updates?
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1775)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)