Skip to content

Feature: Stopwatch Persistent Notification #755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
inderjsingh opened this issue Mar 18, 2025 · 2 comments
Open

Feature: Stopwatch Persistent Notification #755

inderjsingh opened this issue Mar 18, 2025 · 2 comments

Comments

@inderjsingh
Copy link
Contributor

Description

Problem

Currently, when the stopwatch is running and the user navigates back to the home screen or switches apps, there’s no visible indication that the stopwatch is still active. Users have to reopen the app to check the elapsed time, which is inconvenient.

Proposed Solution

Implement a persistent notification that:

  • Displays the current running stopwatch time (updates every second).
  • Remains visible as long as the stopwatch is running.
  • Includes actionable buttons:
    • Pause
    • Reset
    • Open App

The notification should automatically dismiss itself when the stopwatch is stopped or reset.

Suggested Implementation

  • Use flutter_local_notifications for displaying notifications.
  • Use android_alarm_manager_plus or a foreground service to update the notification every second while the app is in the background.
  • Connect the notification updates to the StopwatchController (or equivalent stopwatch logic) so that the displayed time is always accurate.
  • Handle actions (Pause/Reset) via intent callbacks or notification action handlers.

Benefits

  • Users can easily track elapsed time without opening the app.
  • Makes the stopwatch feature more robust and professional.
  • Enhances user experience, especially for tasks that require continuous time tracking in the background.

Video

WhatsApp.Video.2025-03-18.at.09.06.56_0eeb1ad5.mp4

I’d be happy to contribute if guidance or PR support is needed!

Screenshots

No response

@Mayank4352
Copy link

@MarkisDev @NishantSinghal19 Please assign this issue to me, I would like to work on this

@kushchoudhary98
Copy link
Contributor

I very much prefer the stopwatch overlay (mentioned here..#523 #821) rather than a notification. @MarkisDev what are your thoughts on this? We can have either one of them.

In #821 we can also add the respective play, pause, and reset buttons too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants