Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

BackgroundGeolocation.onGeofence not getting called when app is dead on IOS (RN)

$
0
0

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

enter image description here

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


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>