I'm the creator of the Badminon Score Tracker app. I am now trying to associate badminton matches to Garmin Connect activities.
I've created an activity recording session using:
session = Recording.createSession({:sport => Recording.SPORT_GENERIC, :subSport => Recording.SUB_SPORT_MATCH, :name => "Badminton"});
Full code is available on Github if needed.
At the end of a match, I show some statistics about the match such as max heart rate or elapsed distance. This works well within the simulator but not with my real Fenix 3. It never displays anything. It seems the activity info object is empty.
Then I discovered that if I change the type of sport:
session = Recording.createSession({:sport => Recording.SPORT_RUNNING, :subSport => Recording.SUB_SPORT_MATCH, :name => "Badminton"});
Everything is working fine. My stats view displays good data and the resulting activity is nicely displayed on Garmin Connect website.
First of all, it would be nice if the simulator and the watches behave the same. That's not the first time I encounter this problem.
Secondly, is this the normal behavior? Why does changing the type of sport changes the type of data that are recorded? What I am supposed to use if I want to display info such as heart rate or elapsed distance in my badminton activities? Is there a place where I can find what kind of data are recorded for each type of sport?
Thanks.