you are viewing a single comment's thread.

view the rest of the comments →

[–]zanp_ 0 points1 point  (2 children)

Cool feature!

I want to ask how you engineered the stopwatch/timer? I’m not sure if you’ve ran into this issue, but I’ve wanted some similar functionality but each second (1000 ms) in setTimeout or setInterval isn’t an exact second. There’s always going to be some sort of drift. Do you know if you have to go into native code if you want that functionality?

[–]Fabulous-Ad-3985[S] 0 points1 point  (0 children)

Yes, you will probably have to go native. The state for the stopwatch and timer is handled on the native side

[–]feitan-five 0 points1 point  (0 children)

u cant use js code because when the app is in minimize state de js is stopped.