How does the Waypoint Intent work

Hello,

when trying to use the intent generated by the waypoint as such:

        PersistedContent.saveWaypoint(location, {:name => "Maps Share"});

        iterator = PersistedContent.getWaypoints();

        item = iterator.next();
        while(item != null) {
            var waypoint = item as PersistedContent.Waypoint;

            if(waypoint.getName().equals("Maps Share")) {
               var intent = waypoint.toIntent();
               System.exitTo(intent);
            }
            item = iterator.next();
        }
It will succesfully open an activity selection screen (e.g. walking / running / cycling). Upon choosing one of them it will go to the activity screen but there is no navigation running to the waypoint.
So I wonder what the use of the waypoint intent is in the first place if it doesn't open a navigation towards it. 
Any help is greatly appreciated!
  • I just found this bug report 

    Bug Report which seems to be under review. 

    In the meantime is there any way of manually launching a desired activity with a navigation ? 

    Something like 

    var targetApp = new System.Intent(
        "manifest-id://12345678-1234-1234-1234-123412341234",
        {"navigateTo"=> waypoint}
    );
    System.exitTo(targetApp);

    would be great to have. Is there a way to get the manifest id of the default activities like running, cycling etc. ? 

  • Hi, have you found any way to work with waypoint intents in the meantime?

  • Found it out. New waypoints get appended to the end of the list. So be careful if other WPs with the same do exist.