sharedPrefKeyTimezone top-level constant

  1. @Deprecated('Use DeviceServiceInt for timezone tracking. ' 'This constant will be removed in a future version.')
String const sharedPrefKeyTimezone

@deprecated This key is no longer actively used for timezone storage.

Migration Note (v0.4.0+): Timezone tracking has been migrated to DeviceServiceInt/DeviceServiceImpl. The new system provides:

  • Per-device timezone tracking (instead of per-user)
  • DST-aware offset tracking (timezoneOffsetMinutes)
  • Automatic sync on app resume and auth events
  • Offline resilience with pending payload system

Current Status:

  • This key was intended for storing timezone but was never actively written to.
  • The timezone passed in auth callables (loginAnonymously, accessCodeCheck) remains for backend redundancy during the migration period.
  • Removal of this constant is planned for a future version.

For Consuming Apps:

  • Call DeviceService.connectToAuthService() to enable automatic timezone tracking.
  • The timezone will be synced to users/{uid}/devices/{deviceId} in Firestore.
  • Backend systems should query the devices subcollection for timezone data.

See docs/DEVICE_SERVICE_GUIDE.md for full documentation.

Implementation

@Deprecated('Use DeviceServiceInt for timezone tracking. '
    'This constant will be removed in a future version.')
const String sharedPrefKeyTimezone = 'dreamic_timezone';