Open remoteportal opened 11 months ago
You need to set the location permission to "always allow". This is not something an app can request and in a production app you should show a dialog to the user and open settings for them.
After setting "always allow", does this plugin work on iOS when the app is terminated? i.e. when the 500 meter threshold is passed, does it wake up the app with our callback?
@ikbendewilliam Even with that setting enabled, it doesn't work for me.
To reproduce:
Expected result:
Actual result:
I made a pull request on a different repo that achieves this: https://github.com/Almoullim/background_location/pull/207
There's also flutter_location_wakeup
that seems to do this.
Would be good to have it in one add-on, though. And perhaps there's even a better way to achieve this in general?
The perfect solution for my use case would be a native geofencing plug-in that works reliably in the background.
I see that if the example app is not in the foreground (the background), I continue to get notifications.
But as I close the app the notifications stop.