Open
Description
[REQUIRED] Step 2: Describe your environment
- Xcode version: Version 9.0 (9A235)
- Firebase SDK version: Firebase/Core (4.2.0)
- Firebase Component: Database
- Component version: Firebase/Database (4.2.0)
[REQUIRED] Step 3: Describe the problem
.info/serverOffsetTimestamp doesn't update when device time changes.
Steps to reproduce:
- Launch app
- Get .info/serverTimeOffset
- Background
- Change system time
- Resume
- Get .info/serverTimeOffset
Notice that the offset hasn't changed
Proposed implementation
On iOS this can be implemented by using applicationSignificantTimeChange callback or using UIApplicationSignificantTimeChangeNotification notification
On Android this can be implemented by using ACTION_TIME_CHANGED intent