Manish Sharma
Manish Sharma

Reputation: 190

Tizen app : gear current consumption is too high on sleep mode

I have an application in Tizen in which I am recording the sensor data of some activity of a user. The application is hybrid type and the accelerometer, gyroscope data is registered in the native service application. I have an option where the user can pause the recording of data. When the device goes to is paused, sensor_listener_unset_event_cb(listener_accelero) and device_power_release_lock(POWER_LOCK_CPU) are called. Hence, it is expected that no sensor data will be received while in sleep state.

However, on submitting to Tizen store I get the following rejection message :

[CURRENT] Gear current consumption is too high on sleep mode
- Tested application
Min current: 23.1 mA, Average current: 24.173 mA
- Samsung Gear standard current consumption
Min current: 4 mA, Average current: 7 mA

The video attachment shows that reported current consumption is in sleep state after pausing the recording. What could be the reason for such high current drawn? Also, how can I verify whether some tweak actually solves the problem. Is there any application which does the current/power profiling for Samsung gear S2/S3?

Upvotes: 1

Views: 480

Answers (1)

Md. Armaan-Ul-Islam
Md. Armaan-Ul-Islam

Reputation: 2184

Keeping app awake in device screen off state is sensitive issue. Have you tried using SENSOR_OPTION_ALWAYS_ON

sensor_listener_set_option(listener, SENSOR_OPTION_ALWAYS_ON);

Sensor API: Sensor option

You may also see this links:

Allowing Applications to Run on the Background

Tizen accelerometer sensor usage

Stop the sensor listeners when the app is going to pause state. Then again start the listeners when app is up front again if necessary.

sensor_listener_stop ( listener )

Upvotes: 1

Related Questions