react-native-background-geolocation: java.lang.IllegalArgumentException: Receiver not registered: com.transistorsoft.locationmanager.device
Your Environment
- Plugin version: 3.0.7
- Platform: Android
- OS version: 8.0
- Device manufacturer / model: Samsung devices
- React Native version (
react-native -v): 0.59.10 - Plugin config
java.lang.IllegalArgumentException: Receiver not registered: com.transistorsoft.locationmanager.device.a$a@30ad369
1
at com.swoopmobile.MainApplication.a ([unknown]:4)
2
at com.swoopmobile.MainApplication$2.uncaughtException ([unknown]:2)
3
at com.pushwoosh.internal.crash.g.uncaughtException ([unknown]:107)
4
at com.transistorsoft.locationmanager.adapter.BackgroundGeolocation$e.uncaughtException ([unknown]:108)
5
at java.lang.ThreadGroup.uncaughtException (ThreadGroup.java:1073)
6
at java.lang.ThreadGroup.uncaughtException (ThreadGroup.java:1068)
7
at java.lang.Thread.dispatchUncaughtException (Thread.java:2187)
config settings: {
desiredAccuracy: Platform.OS === 'ios' ? BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION : BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
// Android only
distanceFilter: 150,
fastestLocationUpdateInterval: 15000,
foregroundService: true,
notificationTitle: 'Swoop',
notificationText: 'Tracking your location',
allowIdenticalLocations: true,
// This will keep location services always on (this used to be true)
disableStopDetection: false,
// Stop on app terminate (this used to be false)
stopOnTerminate: true,
// Restart tracking on phone restart (this used to be true)
startOnBoot: false,
maxRecordsToPersist: 1,
// Ios only
// This is the motion permission which will help battery life (used to be true)
disableMotionActivityUpdates: false,
/*
* Without reset: true, the plugin will cache settings and ignore changes to them
*/
reset: true,
locationAuthorizationRequest: 'Always',
// Activity Recognition
stopTimeout: 1,
// Application config, beeps when location succeess or fails
// debug: false, // __DEV__ && Config.GEOLOCATION_DEBUG === 'true',
// debug: true,
logLevel:
__DEV__ && Config.GEOLOCATION_DEBUG === 'true' ?
BackgroundGeolocation.LOG_LEVEL_VERBOSE :
BackgroundGeolocation.OFF,
// Set true to sync multiple stored locations to server in a single HTTP request.
batchSync: false,
// Set true to sync each location to server as it arrives.
autoSync: true,
// Don't send server side updates inside the geolocation component
url: null,
}
Expected Behavior
error not to happen
Actual Behavior
Our bug tracker; Rollbar, is reporting lots of these errors from our users.
Steps to Reproduce
Cannot repo in person but can see it in Rollbar bug tracker
Context
Is this caused by stopOnTerminate: true? how can we make this work with that setting enabled?
Debug logs
Logs
PASTE_YOUR_LOGS_HERE
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (7 by maintainers)
Hey @christocracy we are still receiving a lot of this error. any solution for this?