admin管理员组

文章数量:1122832

I'm working on a Flutter app that requires continuous location tracking, even when the app is not actively running (i.e., the app is killed or not in the background or foreground). The goal is to track the device’s location when the app is terminated in iOS.

I’ve tried using various Flutter plugins like geolocator and background_locator_2, but I am running into issues where the app stops receiving location updates when it is closed (terminated) or when it's not in the background or foreground.

Here’s a summary of what I’ve tried so far:

background_locator_2 : I followed the plugin's setup instructions, but it seems like location updates are not persistent when the app is terminated or in terminal mode

Additional Notes:

  • I’ve enabled all the necessary permissions for location services, including always location permission, in the Info.plist.
  • I’ve tried different configurations in the background_locator_2 setup (e.g., setting appropriate intervals, enabling background modes), but the app doesn’t seem to receive location updates once killed.
  • I’ve also tried using background fetch and remote notifications, but they don’t seem to handle continuous location updates as needed.

本文标签: