You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
onTaskRemovedand 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.