Repository navigation
v2.0.6 — Battery Optimizations + Android Config Fix
Tracelet 2.0.6 — Battery Optimizations, Performance Upgrades & Android Config Fix
We are thrilled to announce the official coordinated release of the Tracelet 2.0 line! This major milestone introduces a modernized, compound configuration schema, type-safe platform channel communication via Pigeon, and major performance and battery optimizations across both iOS and Android.
Highlights
🐛 Critical Android Configuration Fix (#77)
Fixed a critical bug in ConfigManager.kt where the entire "android" configuration block was omitted from native flattening keys. This caused all custom parameters inside AndroidConfig (including locationUpdateInterval, deferTime, and ForegroundServiceConfig settings like custom notifications) to be silently ignored and fall back to default values. These are now fully parsed and applied correctly.
🔋 Battery & Performance Upgrades
- Android Hardware Sensor Batching: Exposes hardware-level accelerometer sensor batching, reducing CPU wake-ups by over 90% during active motion monitoring.
- Android Motion Fallback: Gracefully falls back to use
TYPE_SIGNIFICANT_MOTIONfor active tracking when a primary accelerometer is missing on the device. - iOS Heartbeat Deduplication: Bypasses redundant SQLite writes and HTTP sync attempts when the device is completely stationary.
- iOS Stationary Dwell Window: Corrected accelerometer frequency sample calculations to restore the highly-responsive fast stationary detection (~5-second dwell window).
🩺 Diagnostic Tooling: Tracelet Doctor
Includes official support for our new drop-in companion diagnostic library: tracelet_doctor (v1.0.1).
Developers can now present a complete diagnostic overlay bottom sheet using TraceletDoctor.show(context) to quickly debug missing headless task registrations, mock location states, permission levels, and power-saving overrides in real-time.
Release Version Matrix
This coordinated release bundles the following component updates:
| Component / Package | Version | Description |
|---|---|---|
📦 tracelet |
2.0.6 |
Core Flutter plugin package |
🤖 tracelet_android |
2.0.6 |
Android platform implementation |
🍏 tracelet_ios |
2.0.6 |
iOS platform implementation |
🌐 tracelet_web |
2.0.6 |
Web platform implementation |
🔗 tracelet_platform_interface |
2.0.6 |
Unified Platform Interface |
🩺 tracelet_doctor |
1.0.1 |
Drop-in Companion Diagnostic Tool |
| 🤖 Native Android SDK | 2.0.6 |
Core Android AAR binary |
| 🍏 Native iOS SDK | 2.0.6 |
Core iOS CocoaPod framework |
Quick Migration from 1.x
Tracelet 2.x introduces a compound configuration schema. Platform-specific config fields are now cleanly grouped:
// 1.x flat schema
await Tracelet.ready(Config(
desiredAccuracy: DesiredAccuracy.high,
stopOnTerminate: false,
locationUpdateInterval: 10000,
));
// 2.x structured schema
await Tracelet.ready(Config(
geo: GeoConfig(desiredAccuracy: DesiredAccuracy.high),
app: AppConfig(stopOnTerminate: false),
android: AndroidConfig(locationUpdateInterval: 10000),
));For a comprehensive migration walkthrough, please refer to our Migration Guide.