Skip to content

Feature: Stopwatch Persistent Notification #755

Open
@inderjsingh

Description

@inderjsingh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions