RobertWarrenGilmore / stylin-24-7-watch-face

a 24-hour watch face with 12 at the top
0 stars 0 forks source link

Location isn't shown until after reloading watch face. #36

Closed RobertWarrenGilmore closed 3 years ago

RobertWarrenGilmore commented 3 years ago

Steps to reproduce:

Expected result:

Actual result:

RobertWarrenGilmore commented 3 years ago

I think the issue is that the location client remembers how recently it queried even after a system reboot, so it won't query again even when the app is restarted and the last location is lost. A solution might be to force it to query when the app starts without the location request object that dictates a schedule. Another solution might be to serialise the location and save it as a preference, so it can be reloaded when the app starts up.

RobertWarrenGilmore commented 3 years ago

Also the long wait after reboot is unnecessary to reproduce the issue.

RobertWarrenGilmore commented 3 years ago

Tested this solution on the emulator and on a real watch. 👍