bryceco / GoMap

OpenStreetMap editor for iPhone/iPad
ISC License
301 stars 40 forks source link

Lock screen UI has weird edge cases #762

Closed tordans closed 2 weeks ago

tordans commented 1 month ago

I was not able to pin this down exactly, but wanted to share it now so others can help find the issue (if there is any).

I was experimenting with the lock screen UI and I thing there are edge cases where the UIs don't match

One case is…

  1. start recording traces
  2. lock phone > lock screen
  3. unlock > close app with task manager which stops the recording
  4. lock phone > still there is a UI showing a recording, but the buttons don't work (some they open the app, but none handle the tracing anymore); the numbers on the lock screen UI don't change anymore, I think

There might be other edge cases that are similar …

bryceco commented 1 month ago

I'll try to fix these edge cases as best I can. The commit I just did will remove any widgets when the app terminates.

Because the lock-screen widgets are running in a system process, not our app, they have a life of their own:

A widget will only disappear if we send it a message telling it to, so there is still an edge-case where if the app crashes then the widget will stay around until the system decides to remove it.

bryceco commented 2 weeks ago

Since there aren't any other cases being reported I'm closing this.