Permission requiredFailed invoking <symbol>Permission Required

I'm trying to write a watch face that makes use of the Altitude sensor (barometer).

I've added the Sensor (& Background) permission(s) to the manifest but when I call

Sensor.setEnabledSensors([Sensor.SENSOR_HEARTRATE]);


I get this error: `Permission requiredFailed invoking <symbol>Permission Required` when I run my app in the simulator (fenix 3).

Additoinally I don't see a constant Sensor.SENSOR_ALTIDUE ... how should I enable it using the above syntax?
  • Ok, a few things here. You can only access sensors from a background process in a watchfaces. Not in the main watchface process The background process permission, and sensor only applies to the background process for a watch face. On top of that, the f3 doesn't support background processes at all.

    I think you're trying to figure out how to show HR and elevation in a watch face, which is really more of a question for the main developer forum (one level up).

    but here's the info :)

    On a fenix 3, you can't show HR in a watchface. You can only do that on a watch with built a OHRM (like the f3hr). For elevation, on a watch with a baro altimeter (like the f3), you can get it from Activity.Info