Under Review
over 2 years ago

bug: onStop is being called twice in datafield

The following code of my datafield:

class MyMApp extends Application.AppBase {

    public function onStart(state as Dictionary?) as Void {
        System.println(Time.now().value() + " onStart");
    }

    public function onStop(state as Dictionary?) as Void {
        System.println(Time.now().value() + " onStop");
    }
}

generates such output:

1666566546 onStart
1666566603 onStop
1666566603 onStop
1666566609 onStart
1666566631 onStop
1666566631 onStop
1666566648 onStart
1666566664 onStop
1666566664 onStop

when starting, stopping (and saving)

then starting, stoping (and resuming) and stoping and saving

As you can see onStop is always being called twice in the same second.

Parents
  • This is the 3rd time I'm "reporting" this: for some reason whenever SOME Garmin employee replies to any of my bugreports / comments I don't get a notification about it. When someone else (not a Garmin employee) does then I get a notification. So I did not notice for 4 months that you requested more data (when I would probably still remember). Only now that Travis replied I did get a notification.

    I deleted my previous answer because now I remember that this could have only happened on my fenix6. Unfortunately I don't remember what FW version it was 4 months ago or what SDK I used.

Comment
  • This is the 3rd time I'm "reporting" this: for some reason whenever SOME Garmin employee replies to any of my bugreports / comments I don't get a notification about it. When someone else (not a Garmin employee) does then I get a notification. So I did not notice for 4 months that you requested more data (when I would probably still remember). Only now that Travis replied I did get a notification.

    I deleted my previous answer because now I remember that this could have only happened on my fenix6. Unfortunately I don't remember what FW version it was 4 months ago or what SDK I used.

Children
No Data