How to automatically force iOS app to stop timer/GPS when app is terminated – Flutter
I’m working on a Flutter mobile app and I’m facing a challenge.
Does anyone know how to implement code or utilize an API to automatically turn off GPS in iOS when app is terminated from the background, or after a set time, say 30 minutes, without requiring user interaction?
Additionally, is there a way to automatically turn off the timer without any user input when the app is terminated?
I managed to find a solution for Android, but none of the solutions (APIs) work on iOS.
I’ve been struggling with it for a while so any insights or pointers would be greatly appreciated!
I really need your help on this one.