Saving the trip in an app

I working on a application where i activate the GPS, and when a user starts the timer I create a session. When the training stop I would like to store all the information in Garmin Connect. I get all the information about length, time etc., but not the route on the map.

Do anyone know what to do?

In may main I setup the following:

function onHide() {
Sys.println("gpsOff");
if( Toybox has :Postition ) {
Sys.println("Toybox has :Postition");
Position.enableLocationEvents(Position.LOCATION_DISABLE, method(:onPosition));
}
}

function onShow() {
Sys.println("gpsOn, has position: " + (Toybox has :Postition));
if( Toybox has :Postition ) {
Sys.println("Toybox has :Postition");
Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));
}
}

function onPosition() {
var gpsinfo = Position.getInfo();
gpsIsOkay = ( gpsinfo.accuracy == Position.QUALITY_GOOD || gpsinfo.accuracy == Position.QUALITY_USABLE );
Sys.println("Is GPS OK: " + gpsIsOkay);
}


in the stopwatch part I setup the session :

function createSession() {
if( Toybox has :ActivityRecording ) {
if( session == null) {
var nameSession = strSession;
session = Record.createSession({:name=>nameSession, :sport=>Record.SPORT_RUNNING});
}
}
}


And when the session ends I save it:

if( Toybox has :ActivityRecording ) {
if( session != null && session.isRecording()==false ) {
session.save();
}
}



Should I do anything to enable the tracking in the watch?
I have enabled Activity Recording and Positioning in the mainfest.


I hope someone could help me out here.