I am facing an issue of data not being send to API from service app when display is off in KC- Prokiosk mode.
Service app is continuously fetching data from sensors(Pedometer, Heart rate and pressure) and store it in sqlite.
There is a task running in service app which sends data to API. For fetching, I am using System.Timer which will pull data from sensor at every 1 second interval.
This all works perfectly fine if display is on. As soon as display turns off, data no more getting sync with server.
Tried keeping pause policy to ALL (_pedometer.PausePolicy = SensorPausePolicy.All) for every sensor, to keep sensors alive.