Open
Description
Required Reading
- Confirmed
Plugin Version
4.16.6
Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.27.2, on Microsoft Windows [Version 10.0.20348.2655], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
C++ CMake tools for Windows
Windows 10 SDK
[√] Android Studio (version 2024.1)
[√] VS Code, 64-bit edition (version 1.95.3)
[√] Connected device (4 available)
[√] Network resources
! Doctor found issues in 1 category.
Mobile operating-system(s)
- iOS
- Android
Device Manufacturer(s) and Model(s)
Motorola G22, Motorola razr 40
Device operating-systems(s)
Android 12, Android 15
What happened?
Debug is false, still we are getting location fetching sound as in debug only in Motorola devices
background_fetch: ^1.3.7
flutter_background_geolocation: ^4.16.6
Plugin Code and/or Config
bg.BackgroundGeolocation.ready(bg.Config(
enableHeadless: true,
heartbeatInterval: 60,
locationAuthorizationRequest: 'Always',
url: 'https://newmo.com/AddbackgroundLocation',
headers: {'Authorization': "Bearer ${prefs!.getString('token')}"},
desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
distanceFilter: 150,
// scheduleUseAlarmManager: true,
// schedule: ['1-7 21:19-21:20'],
stopOnTerminate: false,
disableElasticity: false,
elasticityMultiplier: 1,
desiredOdometerAccuracy: 100,
maxDaysToPersist: 3,
locationUpdateInterval: 1000,
stopTimeout: 5,
disableMotionActivityUpdates: false,
// useSignificantChangesOnly: true,
disableStopDetection: false,
motionTriggerDelay: 0,
autoSync: true,
disableAutoSyncOnCellular: false,
persistMode: 1,
preventSuspend: true,
notificationPriority: 1,
startOnBoot: true,
debug: false,
logLevel: bg.Config.LOG_LEVEL_VERBOSE,
backgroundPermissionRationale: bg.PermissionRationale(
title: "Allow {applicationName} to access this device's location even when the app is closed or not in use.",
message: 'This app collects location data to enable recording your trips to work and calculate distance-travelled.',
positiveAction: 'Change to "{backgroundPermissionOptionLabel}"',
negativeAction: 'Cancel'),
notificationLargeIcon: 'drawable/ic_stat_logo',
notificationSmallIcon: 'drawable/ic_stat_logo',
foregroundService: true,
notification: bg.Notification(
title: 'Day',
text: 'day',
priority: bg.Config.NOTIFICATION_PRIORITY_HIGH,
sticky: true,
smallIcon: 'drawable/logo', // <-- defaults to app icon
largeIcon: 'drawable/logo',
channelId: 'my_channel_id',
actions: [])));