Hi everyone,
I've been testing and correcting bugs on my watchface for few weeks now. Pretty happy of the result.
This morning I figured out that the tidal graph get messed up when the watch can't connect my phone when turning on the flight mode over night.
It seems that the watch keeps the previous graph but applies a different display range calculation on the Y axis, leading to having an outdated graph, with an unrelevant display range on the Y axis (overflow).
When I run the simulator in the morning I don't get this issue on my PC.
On the watch the issue goes away after the first update.
My feeling is that it could come from the watch going into sleep mode or something, but I'm not really sure. My expectation is, that if the watch can't connect, it should persist the previous graph even if outdated. And update it when possible only.
Would you have any advice on where I should start investigating? I have to admit I didn't dig into the use of functions such as onHide, onExitSleep or onEnterSleep as up to now the watchface was more or less working properly.
All the display code is in onUpdate. Onshow is empty. onLayout retreives info from storage and that's it.
Thanks in advance,

Nico