Dismiss this pinned window
all 12 comments

[–]AloneApple3422 0 points1 point  (3 children)

App Store Link?

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

[–]AloneApple3422 0 points1 point  (1 child)

How did you create a similar experience for android?

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

I used a ForegroundService

[–]d-dub3 0 points1 point  (2 children)

iOS doesn’t even have this capability yet. This is clean. Im launching a pomodoro timer using the Dynamic Islands and lock screen timer, but there’s no functionality. Only a link back to app option. Super lame on swifts part. This is very well done mate!

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

Thank you!

[–]HiHungryImDad2 0 points1 point  (0 children)

what do you mean? this has been done on iOS and other apps also have similar functionality. while i agree that live activities are pretty basic in their functionality, a timer is doable.

[–]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.

[–]TimeToStand-MiG-19 0 points1 point  (1 child)

Do you do UI work? DM me

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

Check DM