Is there a good example for how to use alarms? #439
Unanswered
thirdprize
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I'm not sure if the parameter ‘time: 64800’ is correct.
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app service I want to call at regular intervals. A one off call, once a day for example. I have got it working with alarms but I don't know if I am doing it correctly. I currently have the code shown below which works fine on the emulator but crashes my watch. As I understand it, when my minin program loads it removes any existing alarms (for it) and creates a new one.
The removal part works ok but my watch crashes if i have the set() method call in the code. In this example i want to called every minute (for debugging purposes).
Another things is it takes a few seconds to create the alarm
�6/19 [0]11:44:49.822 I/quickjs-libc SBEngine: creating an alarm for low battery notification
�
�6/19 [0]11:44:56.697 I/quickjs-libc SBEngine: alarm 57 created
Beta Was this translation helpful? Give feedback.
All reactions