Typo in Android timestamp metadata: systemClockElaspsedRealtime
Your Environment
- Plugin version: 4.12.1
- Platform: Android
- Plugin config
{
enableTimestampMeta: true,
locationTemplate: `{ "timestampMetadata": <%= timestampMeta %> }`,
}
Expected Behavior
systemClockElapsedRealtime key on Android matches that of iOS
Actual Behavior
The Android SDK has a typo (extra "s" in "elapsed"): systemClockElaspsedRealtime
Example iOS log:
"timestampMetadata": {
"systemTime": 1697668688780,
"time": 1697668688773,
"systemClockElapsedRealtime": 6305610000
}
Example Android log:
"timestampMetadata": {
"time": 1697669333265,
"systemTime": 1697669333311,
"systemClockElaspsedRealtime": 51993,
"elapsedRealtime": 51946
}
Steps to Reproduce
- Enable
enableTimestampMetaand template, if necessary - Start background geolocation tracking
- Log the JSON results
Context
I was trying to write backend code that parses timestamp metadata and noticed Android was dropping systemClockElapsedRealtime and I tracked it down to the typo.
Said typo is present in the documentation as well.
Weird.
Whatever you're doing with timestampMeta, you might be able to use the new location.age instead.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.