Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Ability to stop foreground service when app is closed from recents #342

Description

@radko93

I've been trying to use foreground services and managed to run things in the background. The problem is that's not always that easy to stop the service. When the app is "swiped out" from recents the service is still running, but the React Native context seems to be gone which is causing trouble.

Android potentially offers stopping the service. Seems like adding onTaskRemoved and stopping the service there might help. Someone posted this. How this could be integrated into the service in Notifee? I'm happy to contribute but I'm not sure how to make it configurable from JS side.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions