I am trying to get a notification when a user enters a certain geofence. I am using react-native-push-notification for handling notifications the notification pops if the app is in the background (not removed from the recent apps).
I can see the app starting in the background when the app is dead and geofence is entered but none of my code inside the BackgroundGeolocation.onGeofence is getting executed
I tried turning on degub:true in the config and i get the default debug notification ENTER Geofence: geofence_id even when the app is dead
but my custom notification is not getting fired.
I also have Headless task registered for Android and everything works fine on Android
I am using thislibrary for geofencing
I also submitted an issue sample code can be found there