Added option for android background location sync #208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should resolve the following issues: #206, #204, #202, #131, #8
This add background location when the app is closed, screen locked or similar as well as start on boot (this requires headless update handler). It also adds more option to the notification such as action and custom channel_id.
Note that one of the changes this does bring in is that when for android someone chooses background location the /method callback for location doesn't trigger anymore due to the headless callback existing. This means that all location updates for android come via the headless handler and for ios come via the getLocationUpdates as they normally do.
Naturally when background location is not enabled then it won't be an issue.