I have a number of complications in a custom watchface with which I am working, setting the following variables:
var myBodyBattID = new Complications.Id(Complications.COMPLICATION_TYPE_BODY_BATTERY); var myStressID = new Complications.Id(Complications.COMPLICATION_TYPE_STRESS); var myHRID = new Complications.Id(Complications.COMPLICATION_TYPE_HEART_RATE); var myPulseOXID = new Complications.Id(Complications.COMPLICATION_TYPE_PULSE_OX);
When I go to retrieve the data using (for example)
var myPulseOx = Complications.getComplication(myPulseOXID).value; return myPulseOx == null ? "--" : myPulseOx;
My expectation would be that the complications would return the "current" data/values - when I am not wearing the watch, the value for PulseOx would be displayed as "--", however I am not finding this to be the case. Instead, it seems to be "stuck" on its previous/most recent value.
I do observe that the values for things like Stress and Body Battery do show as "--" as expected. Oddly, Heart Rate seems to come and go.
I think my question is chiefly about my expectations - are they simply off? Is it expected that when the watch is not being worn that the complications' values would be null? Or is this variable depending on the complication in question?
Thank you in advance!