Configure pausesLocationUpdatesAutomatically in iOS (Fixes Issue#951, Supersedes PR#992)#933
Conversation
bartekpacia
left a comment
There was a problem hiding this comment.
Hi, thanks for contributing.
Please take a look at comments. Also, I'm curious to learn what's the use-case of this feature. Why do you need it?
|
on IOS devices, location updates in background are paused automatically depending on activity detected by device, so if you have an app that needs to keep getting locations like a tracking app you need to set this parameter in false. |
That is exactly our use-case. The app needs to track the location of the user even when the app or the device is not actively used. |
|
Hi @bartekpacia , I have rebased the changes and updated tests. Please review. |
… Supersedes PR#992)
bartekpacia
left a comment
There was a problem hiding this comment.
looks good, i only have some tiny dartdoc suggestions
thank you!
packages/location_platform_interface/lib/location_platform_interface.dart
Outdated
Show resolved
Hide resolved
packages/location_platform_interface/lib/src/method_channel_location.dart
Outdated
Show resolved
Hide resolved
Co-authored-by: Bartek Pacia <barpac02@gmail.com>
…ation updates in iOS