Hello I am trying to implement a geofencing plugin for Flutter using the native which should be less intrusive to the user.
I’ve started with Android side, but I am at a stalemate. The issue is that the code doesn’t seem to get triggered. What I mean by this is that I have a callback which should show notifications using flutter_local_notifications plugin when an event gets triggered, but if I put the app in background the notifications are shown only after I put the app in foreground again.
I have put the code in the following repository:
https://github.com/vadrian89/flutter_background_geofence
For permissions, I tried using permission_handler but it fails and didn’t had time to investigate the matter. You might need to manually set the permissions from settings screen.
First I’ve implemented using JobIntentService, based on this article, but because it’s deprecated, I tried implementing with WorkManager, but I have the same issue.
3