Record swimming activity, secret options?

TL;DR - Is there any undocumented options for recording a pool swimming activity?

In my app, https://apps.garmin.com/en-US/apps/571ce332-595c-47da-9f50-8f85f0dea6e8, you can record your tabata workout to a .Fit file.
The code is more or less just a copy paste of one of the SDK provided samples.
However, I have seen some very strange behaviors on my fenix3hr and on garmin connect when recording a pool swimming session.
First I recorded a normal swimming session using the garmin pool-swimming app and saved the session. Then I started my app and started a short 2x30s interval. After the timer runs out the app should display a save/discard dialog but instead showed a red stop recording symbol and the the start screen of the pool-swimming app. All I did was press back.
Once synced I had an activity on 0yds on garmin connect. I did one more 4x30 set with my app and this time the app allowed me to save the workout (by design), however on garmin.connect I have an activity of a total of 717yd's with a 0s 8800yds lap where I cannot edit anything either (https://connect.garmin.com/modern/activity/1180518442).
So what is going on?
How can my app jump into the ending of the pool-swim app? Could it be me not properly setting up the recording session or are there any undocumented options I have to configure for swimming?

Garmin connect seems to have some general Issues with swimming since I cannot edit distance on even the garmin pool-swim recorded sessions (also, I use ISO standard meters and not yards)...
  • It almost sounds like your watch crashed when you were running your app, and it booted back up and shows the red "stop recording" thing (it sounds like that's not part of your app)... You link to the app store shows "Page not found", so I'm thinking your app hasn't been approved yet.

    Have to run this on dry land (maybe moving your arms like swimming) so you can see what the watch is doing the whole time?

    One common problem people have with recording apps and df's, is that you need to check values in Act.info for null - you may not have a problem in the sim, but on a real watch, many of the values start as null.
  • It was more like my app jumped into the end of a swim recording, I could se the red stop square and the distance fields in the background + the gps and heartrate dropdown...
    My app is accessible for me and I have 140+ dl's so it seems the store also behaves strange.

    The null check in Act.info was a good idea, I'll check that out, thanks!
  • Maybe it's the link in your post, as I still get "Page not found"...

    When you say it "jumps to the end", is what you see if there's a crash. The FW knows you were recording when the watch crashes, and when it boots back up, it starts the native activity for what you were recording and gives you options about saving or discarding it (it doesn't restart the CIQ app, but a native one)
  • Ahh, sorry, I had to many tabs open an fooled myself, the link should work now.

    I'm 100% sure the whole watch OS doesn't crash, but my app might.. I could see the countdown and hear the end signal but instead of a save/discard menu from my app, the pool-swim app end is shown. First I have to find a solid way of reproducing the crash behavior and then do some debug logging I guess..
  • For some reason, your initial post is now gone. (?)

    I'll guess that a IQ! crash will do the same thing, but I see more watch crashes as I edge towards running out of memory in an app.