Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

record gps data with an exercise - use of exercise API

ANSWERED

Hello,

 

First of all I wish all of you a happy new year! I'm looking forward to do new developments and improvements of my apps and clockfaces in the future with the new APIs!

 

And I'm already working with the exercise API.

 

I'm using the following code to start an (userdefined) exercise and want to record the gps data

 

myGPSFunction = geolocation.watchPosition(locationSuccess, locationError);  // GPS-Funktion starten
exercise.start(exerciseName, { gps: true });

I'm making sure that the gps connection will be established properly and it works, because I'm using the locationSuccess function and the position data for calculation of the distance run.

 

When I'm transfering the recorded exercise to the fitbit user profile all data of the run will be transfered except the gps data of the run. - it seems that the data isn't available in the exercise.

 

Have I do anything else to get the exercise working with the gps data?

Can I access such recorded gps data during development and debugging?

 

Regards

Capitano

Best Answer
1 BEST ANSWER

Accepted Solutions

There's definitely some issue with custom exercises and GPS. Hopefully it will be addressed soon. In the meantime, you can use one of the non custom types which does support GPS.

View best answer in original post

Best Answer
12 REPLIES 12

There's definitely some issue with custom exercises and GPS. Hopefully it will be addressed soon. In the meantime, you can use one of the non custom types which does support GPS.

Best Answer

@JonFitbit

 

Thanks for the information.

It's just the combination using an own exercise name and get the gps data recorded, so I have to think about using the "run" type...

 

Do you know when this issue will be fixed? I notices that other bugs has been fixed already...

 

Regards

Capitano

Best Answer
0 Votes

Any news on that one? It is not the best experience for my users if they do a custom exercise aka. SUP and see Aerobic as done exercise in the activities on Fitbit.com.

Best Answer

@JonFitbit

 

I'm just preparing a new version of my VirtualPartner that uses SDK3 and I want both use a custom exercise name and transfer gps data to the user profile.

 

Do you have any news on this topic? Is this now possible for custom exercises or have I still to use provided exercises like run?

 

Regards

Capitano

Best Answer
0 Votes

I would be really interested in this as well. I am working on creating a Running App that will display more than just the 3 stats at one time you can currently do with exercise shortcuts, ( I like to see more when i run and i don't like touching the watch to switch stats)

 

While working on the app in the fitbit studio, the fitbit simulator log always returns this: Exercise type does not support GPS 

 

Doesnt matter if i set it to run or skateboard, it always says that. 

Best Answer
0 Votes

@JonFitbit 

 

Hello we're still waiting for information on that topic.

 

Is there a changelog for the SDKs where we can check that issue from time to time?

 

Regards

Capitano

Best Answer
0 Votes

any update on this?

Best Answer
0 Votes

Sorry. Answered to the wrong post

Best Answer
0 Votes

@JonFitbit @SunsetRunner 

 

Does SDK 3.1 now support gps data recording for custom exercises?

 

Regards

Capitano

Best Answer
0 Votes

I don't think this is the case. In the updated reference documentation the custom exercise type has been removed from the list of GPS enabled exercises.

 

Furthermore, custom exercise types still map to Aerobic in the app 😞

Best Answer

Well that is **ahem**ty, instead of fixing it, they just remove reference that its supposed to work?

Best Answer
0 Votes

 Has anybody any news about this issue?
I tried to use all "the non custom types" and also a different custom types with GPS option, but doesn't works!

if (exercise.state == 'stopped') exercise.start('run');
    console.log('exercise state: ' + exercise.state);
    console.log('exercise type: ' + exercise.type);
    console.log('elevation: ' + exercise.stats.elevationGain);

//OUTPUT
//exercise state: started
//exercise type: undefined 
//elevation: 0

 

Regards

 

Best Answer
0 Votes