Problem with map information in app

I'm working on a app for my watch, where I have to activate the GPS to record an activity with distance, speed etc..
All the stuff with the GPS is working, an my activity is stored almost as expected. But the activity is missing the map information.


This is recorded with my own app, a normal activity should have the recorded route on the map also:

On the watch I don't either have the map option. :(


What should I do to get the map information correct on the activity recorded with my app? Anyone with a solution?
  • What is the type of activity you are recording? (in the createSession() call)

    Using SPORT_RUNNING and SPORT_WALKING, I get maps just fine.

    Also, what device/FW are you using?
  • ...

    Im using the following code:
    session = Record.createSession({:sport=>Record.SPORT_RUNNING, :name=>nameSession});

    Device: 920XT
    FW:4.0.6 Beta
  • When do you start up GPS in your app? Are you sure the data you see isn't the non-gps data only?

    I use:
    Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));

    and it's before I create the session. Infact, I don't create the session until I've got a good GPS signal.
  • I do the following on the first view in the app

    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);
    }


    But I will try and make a small demo app for the GPS part.

    Thanks for your input :)