Notification system in frontend

- Heatmap worker now reports progress
- Base for new altitude value
- Phones can be marked active
This commit is contained in:
2020-11-13 19:04:45 +01:00
parent d747b7be5b
commit ab1b90d020
27 changed files with 423 additions and 36 deletions

View File

@@ -92,7 +92,10 @@ class TrackerService : Service() {
level * 100 / scale.toFloat()
}
val beat = Beat(androidId, arrayOf(location.latitude, location.longitude, location.accuracy.toDouble(), location.speed.toDouble()), batteryPct?.toInt(), location.time)
val beat = Beat(
androidId,
arrayOf(location.latitude, location.longitude, location.altitude, location.accuracy.toDouble(), location.speed.toDouble()),
batteryPct?.toInt(), location.time)
val moshi = Moshi.Builder().add(KotlinJsonAdapterFactory()).build()
val jsonAdapter: JsonAdapter<Beat> = moshi.adapter(Beat::class.java)