dariosalvi78 opened a new pull request, #298: URL: https://github.com/apache/cordova-plugin-geolocation/pull/298
### Platforms affected iOS only ### Motivation and Context It is sometimes the case that an app needs more control over localization strategies, particularly in relation to accuracy and delivery strategies. I have found myself in this situation for an app used for health and fitness. This only makes sense for iOS as Android uses the webview localization interface. ### Description Added the following optional configuration properties: **distanceFilter** which is the minimum distance (in metres) the device must move horizontally before a location update is delivered to the callback. This is currently set to 5m in high accuracy mode, but it may be not enough for some use cases, such as the one I personally needed! Exposing this property allows better control of the plugin behaviour. **desiredAccuracy** requests a specific accuracy level from Core Location, overriding the accuracy that `enableHighAccuracy` would normally select (kCLLocationAccuracyBest). Again, this is for better control of the plugin. **pausesLocationUpdatesAutomatically** by default Core Location may automatically pause location updates when it determines that the user is unlikely to have moved, to save battery. Exposing this flag allows to get updates also when the user is stationary. **allowsBackgroundLocationUpdates** if true, the app can receive location updates while in the background. For this to work additional settings must be in place in the Info.plist file as documented on the README. ### Testing Tested on iPhone 7, iOS 15.8.5 ### Checklist - [ ] I've run the tests to see all new and existing tests pass - [ ] I added automated test coverage as appropriate for this change - [X] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`) - [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/)) - [X] I've updated the documentation if necessary -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
