background_location icon indicating copy to clipboard operation
background_location copied to clipboard

Added option for android background location sync

Open BWMuller opened this issue 1 year ago • 1 comments

This should resolve the following issues: https://github.com/Almoullim/background_location/issues/206, https://github.com/Almoullim/background_location/issues/204, https://github.com/Almoullim/background_location/issues/202, https://github.com/Almoullim/background_location/issues/131, https://github.com/Almoullim/background_location/issues/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.

BWMuller avatar Apr 12 '24 07:04 BWMuller

@BWMuller thanks for keeping this up to date and sorry for not checking in on this! Was there a particular method you used to test this? I'd love to have some independently verifiable way to know that it works since I cant really directly test it.

MoralCode avatar Jun 19 '24 14:06 MoralCode

@MoralCode Unfortunately I haven't been able to get around granting permissions as of yet for creating a standalone test that can just be run on ios/android so that you have an independent method of verification

BWMuller avatar Jul 11 '24 06:07 BWMuller

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Aug 25 '24 10:08 github-actions[bot]

This PR was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Sep 04 '24 10:09 github-actions[bot]