Acknowledged
CIQQA-4869

Swim session created with ActivityRecording is ended by the system after ~8 hours (FR965)

Hi Connect IQ team,

I'm Ron Nahari, a Connect IQ developer from Israel. I've built a device app that lets Sabbath-observant Jews keep wearing their Garmin watch over the Sabbath. I'm working on it together with the Zomet Institute, an Israeli institute for technology and Jewish law.

For about 25 hours the watch has to stay passive: the wearer's movement shouldn't create any records. A pool swim session does exactly that. While it is recording, the watch counts neither steps nor floors, and the touchscreen is disabled.

The problem:

  • Device: Forerunner 965, firmware 29.05, SDK 9.2.0
  • Session: createSession({:sport => Activity.SPORT_SWIMMING, :subSport => Activity.SUB_SPORT_LAP_SWIMMING, :poolLength => 25.0})
  • After 8.3 hours of recording, the system ended the session and showed the native Save / Resume / Discard screen on top of my app.
  • The app did not crash. There is no entry in CIQ_LOG, and Session.isRecording() never returned false before the app was covered.
  • The native Pool Swim activity on the same watch also ended by itself after a few hours.

My questions:

  1. Is there a time limit or inactivity timeout on swim sessions? Can an app disable it or extend it to 25 hours?
  2. If not, is there another way to suspend step and floor counting while my app is running? For example, an option in createSession, or a different sport / sub-sport that has no such limit.

Restarting the session from the app is a poor workaround for us, because the watch plays a tone and vibrates on every stop and start.

Thanks,
Ron Nahari

  • The limit will be the battery for most devices. There are people who record ultra marathons, so the time itself is not the reason, though in theory there could be some artificial limit that is different per activity type, that wouldn't make sense, so I think there's going to be something else. Maybe no more space on the device? Maybe you accidentally clicked the stop button?

    Actually for testing this I would do 2 things: 1. add a callback for the stop button where you save something in the properties/storage, so you can later check whether the button was pressed, 2. just do another test, you can start it tonight and see before shabat (at least if it stops again in the morning exactly after 8.3 hours). 3. also display the battery percentage on the screen for the test. Ah, and also count and display all those things that are not supposed to be registered during shabat (steps,floors, etc). Get the value when the app starts, save the value in the storage *), and display the current value - value at start.

    *) while this is probably not very important for the real app, only for the tests, if you will have something like this in a real app, you need to take into account that the app might be stopped for reasons like notifications, alerts, phone calls, that's why you need to do your calculations based on the saved value and not the one you keep in the memory since app start.

    What did Machon Tzomet tell you regarding the heart rate? Because that is getting recorded during swimm.

    Regarding the touch screen: you'll need to disable it in your app's code by returning true in all the possible callbacks.

    You can also test diving. And whatever sports you test, save the fit file, and then anayze/compare them (i.e: http://fitfileviewer.com ) and you'll see exactly what is being recorded and what not.

    In the past I was also thinking about a watch face for shabat. If your app will work then maybe it can be enchanced. The idea was that it displays the information you need, when you need: time, and a few other fields (maybe the user can pick form a few options: parahat hashavua, times (i.e shma, etc - this needs some moed calculations but there are algorithms in github for that), and maybe also the user could set the times of the tfilot, and get an alarm, that will do some vibration for 10 seconds and then stop, and it could also displan the "next thing", similar to how some watch faces display the sunset after sunrise, etc. So it would show you when the next tfila will start, or maybe even some optional things that the user can enter in the settings, like limud: 15:30)