Device location list

Former Member
Former Member
In SDK 1.1 there is a new namespace PersistedLocations with a single method persistLocation()

http://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/PersistedLocations.html

The page also mentions a new manifest permission setting for Apps. What is the location list and if a location can be saved how can it be loaded?


A second related question, in a pre 1.1 thread someone asked if the last known location could be accessed by a watchface. Was this added or discarded in the new SDK, it looks not? Maybe this location list can be accessed by other app-types in future versions?
  • The current API only seems to allow for new locations to be added, but not listing or general management of the existing locations.
  • Tonny is correct. We're looking at doing more with the management of saved locations and other mapping-related functions, but this is still a ways out.

    I have a ticket open requesting the addition of a way to access the last known position. I expect to see this available much sooner. Right now, the best solution is to use the object store to save the last position obtained within your app. This isn't ideal, of course, especially if the app is only used occasionally, but it's an option.