How to stop a background task in react-native-background-actions when the app is killed?
I’m using the react-native-background-actions library to run background tasks (location tracking) in my React Native app. I want to ensure that the background task stops when the app is killed (either by the user or the system). Here is my background action code