some users complain that the sunrise and sunset which relys on GPS doesn't work. I gather both for my watchface from the latest activity. Here is the code snippet:
if (Activity.getActivityInfo().currentLocation == null) {
//try to get from object store
latitude = Application.getApp().getProperty("lat");
longitude = Application.getApp().getProperty("lon");
if (latitude == null || longitude == null) {
// if not in object store, return 0
return [0, 0, 0, 0];
}
} else {
//store location in object store
latitude = Activity.getActivityInfo().currentLocation.toDegrees()[0];
longitude = Activity.getActivityInfo().currentLocation.toDegrees()[1];
Application.getApp().setProperty("lat", latitude);
Application.getApp().setProperty("lon", longitude);
}
To be honest: on my FR935 and also in the simulator I have zero problems with that. Any hints whats going on?