I'm trying to learn monkey c by doing the simplest of app. A small referee app, where you can specify number of periods and period length. For a game I have simple state machine of the game WaitingForStart -> Running/Pause -> Break -> Running/Paused (etc if several periods) -> Ended
Each period/break/pause has a timer countdown, a total countup and a pause/break countup, ruled by one Toybox.Timer. The state determines which counter(s) that should increase/decrease.
I have two problems:
1) I use onSelect to transition between the states. The Toybox.Timer.start() when I move from WaitingForStart -> Running. Timer.stop() when I enter Ended. This works in simulation on Visual Studio Code, but not on my watch.
2) To avoid closing the app by accident, I have a confirmationDelegate in my onBack(). This confirmation works on simulator, but not on the watch. On the watch, the app closes on my first press on Back.
What could be the issues here? Where should I start digging?