Activity.getActivityInfo().currentLocation is null since latest firmware

Hi
I have a Fenix 3 with a WatchFace that uses Activity.getActivityInfo().currentLocation. Since the latest update one week ago Activity.getActivityInfo().currentLocation is always null.
Has anyone an idea, how I can get the latest known gps position in a WatchFace?

Thank you
Greetings, Marco

Softwareversion: 9.00
Display: 3.70
GPS-Version: 3.30
BLE/ANT: 3.60
WiFi: 2.00
CIQ: 1.4.5
  • Current location will go "stale" after a period of time, and the amount of time can vary by device type.

    Once stale, it will be null.

    Start up an activity (like "run") that uses GPS, wait for a GPS fix, and then exit the activity. Your app should then see a valid currentLocation.
    What's commonly done is once an app sees a valid current location, the location saved to the ObjectStore/Application.Storage, so when currectLocation does go stale, they's a default that can be used.

    So the basic flow I use is at app startup:

    get Activity.Info.currentLocation
    if null, get data from Object Store, if not, save info to ObjectStore
    if still no data, display error

    After the first time you have a valid currentLocation, your app will always have one.
  • WatchFace that uses Activity.getActivityInfo().currentLocation. Since the latest update one week ago Activity.getActivityInfo().currentLocation is always null.

    I'm almost certain that the issue is that your application isn't requesting the Position permission. You should check the app manifest to verify. This post provides a little more detail..

    https://forums.garmin.com/forum/developers/connect-iq/1356867
  • Oh yes, I forgot about that Travis. You now need that permission to get currectLocation!