Languages

Menu
Sites
Language
WRIST_UP works only if display is turned on. How to overcome this?

tizen.humanactivitymonitor.start("WRIST_UP", function(){}); works only if display is turned on.

<feature name="http://tizen.org/feature/sensor.wrist_up"/>
<tizen:setting background-support="enable" encryption="disable" hwkey-event="enable"/>
<tizen:privilege name="http://tizen.org/privilege/healthinfo"/>
<tizen:privilege name="http://tizen.org/privilege/alarm"/>


I want to bind an action when a user turns on their watch by upping a wrist. Maybe there are some other ways to do the same instead of using WRIST_UP?
Thanks!

Edited by: Anonymous on 03 May, 2019

Responses

1 Replies
Iqbal Hossain

You can try with this, 

tizen.power.request("CPU", "CPU_AWAKE");

You need also the respective privileges in the config.xml

<tizen:privilege name="http://tizen.org/privilege/power"/>

See this thread => https://developer.tizen.org/ko/forums/web-application-development/web-app-running-background?langswitch=ko