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.
本文标签:
版权声明:本文标题:iOS Location in Terminal Mode (App is Killed, not open in Background & Forground) for Flutter - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736281173a1926235.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论