react-native-background-geolocation: GEOFENCE intent no longer being sent as of 2.8.3 (Android)
Your Environment
- Plugin version: 2.8.3
- Platform: Android
- OS version: 6.0
- Device manufacturer / model: Pixel 5 Emulator
- React Native version (
react-native -v): 0.45 - Plugin config: https://pastebin.com/rAsP0jDy
Expected Behavior
com.transistorsoft.locationmanager.event.GEOFENCE should be broadcasted when encountering Geofence hits. This was working fine in 2.8.1 (note: have not tested 2.8.2)
Actual Behavior
com.transistorsoft.locationmanager.event.GEOFENCE broadcast action no longer received by BroadcastReceiver registered.
Steps to Reproduce
Context
I’m using the com.transistorsoft.locationmanager.event.GEOFENCE broadcast intent to do display a local native notification using native code. When the user clicks on this notification, they are deep-link’d into the react native app.
It was working fine while I was on 2.8.1. I upgraded to 2.8.3 and it seems to have stopped working. The TSLocationManager is alerting correctly for encountered geofences, but the broadcast is not being sent. If I set up a catch all TSLocationManager intent filters (eg. GEOFENCESCHANGE, LOCATION etc), then I receive some of those, but not GEOFENCE.
Debug logs
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (14 by maintainers)
Commits related to this issue
- Fix Android issue not broadcasting GEOFENCE when MainActivity is not alive — committed to transistorsoft/react-native-background-geolocation by christocracy 7 years ago
- Merge pull request #276 from transistorsoft/logger Implement Javascript API to plugin's logger — committed to livecirrus/react-native-background-geolocation by christocracy 7 years ago
Try installing from branch geofence-broadcast-issue
Soon