I’m trying to create a watchface using Tizen Native API that is showing pedometer data. I’m using the method as described under “Requesting Sensor Data Recording” on https://docs.tizen.org/application/native/guides/location-sensors/device-sensors/#pedometer. In the manifest I have added the http://tizen.org/privilege/healthinfo permission. However, sensor_recorder_start() for SENSOR_HUMAN_PEDOMETER is returning SENSOR_ERROR_PERMISSION_DENIED. Am I missing something?
I’ve found a solution for this. It seems that since Tizen 4 one has to query for the sensor permission state using the ppm_check_permission function and then use ppm_request_permission function to request the permission from the user.