Closed ankur-sanghvi closed 1 year ago
$ cd android
$ ./gradlew app:dependencies
Here attaching log file file-log.txt
You have multiple modules requiring the same Android logger library that this plugin uses org.slf4j
.
Background Geolocation imports the latest version 2.0.7
while org.java-websocket-Java-WebSocket
imports the older 1.7.25
.
debugReverseMetadataValues - Metadata Values dependencies for the base Split
No dependencies
debugRuntimeClasspath - Resolved configuration for runtime for variant: debug
+--- com.facebook.flipper:flipper:0.125.0
| .
. .
. .
. .
| \--- org.java-websocket:Java-WebSocket:1.5.2
| \--- org.slf4j:slf4j-api:1.7.25 -> 2.0.7 <----- older 1.7.25
.
.
.
+--- project :react-native-background-geolocation
. .
. .
. .
| +--- com.github.tony19:logback-android:3.0.0
| +--- org.slf4j:slf4j-api:2.0.7 // <--------- 2.0.7
android/build.gradle
, add the following ext
variables:buildscript {
ext {
.
.
.
slf4jVersion = "1.7.36"
logbackVersion = "2.0.1"
}
}
Ok @christocracy thanks for the help
Your Environment
react-native -v
): 0.68.5const config = { desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH, url: BEECON_API_URL + '/api/xxxxx', headers: { authorization: 'Bearer ' + configsData?.beeconAPIToken, }, params: { imei: configsData?.beeconVehicleImei, org: { id: configsData?.beeconOrgId }, id: configsData?.beeconVehicleId, brand: 'cellularDevice', model: DeviceInfo.getBrand(), variant: DeviceInfo.getDeviceId(), }, notification: { priority: BackgroundGeolocation.NOTIFICATION_PRIORITY_MAX, }, enableTimestampMeta: true, isMoving: true, autoSync: true, heartbeatInterval: 60, // To enable Headless, enableHeadless -> true and stopOnTerminate -> false enableHeadless: backgroundGeoConfig?.enableHeadless, stopOnTerminate: backgroundGeoConfig?.stopOnTerminate, startOnBoot: backgroundGeoConfig?.startOnBoot, stopTimeout: backgroundGeoConfig?.stopTimeout, locationAuthorizationRequest: 'Always', backgroundPermissionRationale: { title: '{applicationName} App collects location data to enable Daily KM Tracking, even when the app is closed or not in use', message: ' ', positiveAction: 'Change to "{backgroundPermissionOptionLabel}"', }, autoSyncThreshold: backgroundGeoConfig?.autoSyncThreshold, distanceFilter: backgroundGeoConfig?.distanceFilter, maxBatchSize: backgroundGeoConfig?.maxBatchSize, batchSync: backgroundGeoConfig?.batchSync, debug: backgroundGeoConfig?.debug, locationUpdateInterval: backgroundGeoConfig?.locationUpdateInterval, logLevel: backgroundGeoConfig?.logLevel, logMaxDays: backgroundGeoConfig?.logMaxDays, // motionTriggerDelay: 10000 }