How is Auto Lap Supposed to Work in Connect IQ

I have a user that wants the auto lap functionality to work inside the Moxy ConnectIQ apps.

Based on this thread, I understood that Auto Lap is intended functionality https://forums.garmin.com/showthread.php?255140

In Brian's reply #6 of that thread, he says:
The native lap screens appearing is the default behavior of the system. There are apps that prefer having this behavior, so I don't believe we will completely remove them, but an option to disable these is under consideration.


I went into Activity Settings --> Laps for the Native Run Activity and set Auto Lap to ON and set the AutoDistance to 0.25 miles.

When my distance reached 0.25 miles in the Moxy Run App (which uses a Run Activity) there was not auto lap indication.
When my distance reached 0.25 miles in the native Run App, it did an Auto Lap as expected.

I have a user that told me the AutoLap feature worked in the Moxy Run App at 5 miles (I did not go 5 miles to verify for myself) He wants to set it to a shorter distance.

All of these tests were on a 920XT.

Where is the Auto Lap value set for a Run Activity in a ConnectIQ App?

Here's the code that creates the activity in the MoxyRun App.

hidden function createSession() {
mActivity = Arc.createSession({
:sport => Arc.SPORT_RUNNING,
:subSport => Arc.SUB_SPORT_GENERIC,
:name => "running"
});
}
  • You have to do it yourself in the app. The standard settings aren't used in a CIQ activity.
    So if you want an auto lap per mile, when the mile changes, call addLap.
  • OK, I reread Brian's reply that I quoted above. I think I misunderstood what he was saying. Later in that post, he said that the AutoLap appearing at 5 miles is a bug and NOT intended functionality. It's just the appearance of the lap screen when a lap is added that is intended functionality and not AutoLap.

    Adding this functionality myself won't help my memory usage issue though.

    Any chance that AutoLap could continue to run in the background like it's apparently doing at 5 miles now but be based on the native activity settings??? i.e. a running app in ConnectIQ would use the AutoLap settings for the native running activity including whether it's turned on or off. It could have a disable option in CIQ just like is being considered to disable the appearance of the native lap screen.
  • Former Member
    Former Member over 10 years ago
    Auto-Lap for ConnectIQ activities won't be able to use the device settings, because it is a setting that exists for each individual activity profile. We would not know which setting to use. I think some of these settings may become available via the options hash when creating a ConnectIQ ActivityRecording session, but I am only speculating on that at this point.

    If it is added as a session option, it is probably something that would make sense to enable via the user setting API we are working on adding.
  • Former Member
    Former Member over 10 years ago
    I have a user that told me the AutoLap feature worked in the Moxy Run App at 5 miles (I did not go 5 miles to verify for myself) He wants to set it to a shorter distance.


    I had the same in my Golf Scorecard App. The autolap screen popped up all by itself.

    I don't want an autolap at any distance being the default behaviour of "my" app, and I also don't want to see a lap screen when I add a lap from my own code. It should be possible to suppress both.
  • i am seeing this "feature" too.
    Auto lap at 8.05km (or 5miles I think)

    So,... How to get out of this "feature"?
  • i am seeing this "feature" too.
    Auto lap at 8.05km (or 5miles I think)

    So,... How to get out of this "feature"?


    to share. To get out of the 8km or 5mile autolap. One has to autolap before the auto-auto lap comes in.