Hello,
I have been developing a garmin watch app for a fenix 6 pro solar, where I use the enableLocation function to get gps coordinates.
After the 24.10 update I get the following error:
UnexpectedTypeException: Expected Number/Float/Boolean/Long/Double, given Symbol
My code is almost the same as the one in the documentation :
if (Position has :POSITIONING_MODE_AVIATION) {
options[:mode] = Position.POSITIONING_MODE_AVIATION;
}
if (Position has :CONFIGURATION_GPS_GLONASS_GALILEO_BEIDOU_L1_L5) {
options[:configuration] = :CONFIGURATION_GPS_GLONASS_GALILEO_BEIDOU_L1_L5;
} else if (Position has :CONSTELLATION_GPS_GLONASS) {
options[:constellations] = [ Position.CONSTELLATION_GPS, Position.CONSTELLATION_GLONASS ];
} else {
options = Position.LOCATION_CONTINUOUS;
}
try{
Position.enableLocationEvents(options, method(:onPosition));
System.println("Position enabled");
}
catch (ex){
System.println(ex.getErrorMessage());
System.println("Position not enabled");
}
Please let me know if you have any insight on this.


