Need advice

Good day to all.
Actually, need two advices. Both for watch face developing.

First one with getting GPS position for further calculations.
Before I used “currentLocation” from “Activity.getActivityInfo()”, but it makes some inconvenient, to get PSN data, need to activate GPS in short time before position data will be used. Same, when need to refresh changed GPS PSN – extra code requested.
Not so far, while making widget, I found that GPS PSN can be taken from “(Position.getInfo()).position” and it’s looks like that last received GPS PSN stored there constantly, and automatically updated, when received.
It’s properly working with beta fw 9.72, tested on Fenix 5x and 5s. But on fw 9.2 (same devices) got two different errors: 5x error – “Unexpected Type Error”, 5s – “Permission error”. After update devices to 9.72 all working smooth and without errors.
Question is: is it new possibility of last beta or bug of last official?

Second question regarding “settings” file from “resources” with watch face settings. One of my watch face has 8 cells to data selected by user. For each cell can be selected one from thirteen types of data. I’m using same list of option for each cell, it’s just duplicated eight times.
Question is: is there any possibility to avoid duplicating and call same option list for each cell?
  • Just what I need – semicolon as separator.

    That’s all right, I understand, that different devices could have different CIQ and different
    hardware. In my case – no any special requirement to this and all tested in simulator.

    Thanks a lot, Jim, you are really providing great help and support in this forum))
  • Good day, again))

    I’ve add support of Fenix 3 HR for my watch face. Watch face used function “SensorHistory“.
    API documentations, in top part, 3HR declared as supported device, in same time declared “Since 2.1.0” but 3HR has 1.4…

    So simple check:

    if( (Toybox has :SensorHistory) && (Toybox.SensorHistory has :getHeartRateHistory) ){

    returns “false”.
    Check for (Toybox has :SensorHistory) return's "false" itself...

    But users inseast, that function should work.

    For simple average current H/R I can use Activity.

    Question is: how make sensor history working to draw hystory diagram?
  • Try getting it from ActivityMonitor instead of SensorHistory.
  • That’s what I thot about.
    But if to use sensor history from “Activity”, as I understood, data will be taken from last saved activity,
    not same as works Toybox.SensorHystory.

    Anyhow, will try.
    Thanks for advice))
  • ActivityMonitor Not Activity. ActivityMonitor also has getHeartRateHistory(), like SensorHistory does

    The same place you get steps, etc
  • Yap, that’s right.
    Just got misunderstanding that getHeartRateHistory() form ActivityMonitor
    returns data from last saved activity, not from general collection of data)
    Will play with the code.
    Thanks a lot)

    Other question: is there any way to use “excludeAnnotations” in jungle based on CIQ version
    (means monkeyVersion)?