[Bug]: Background location heartbeat not working properly on Honeywell CT45 device
Required Reading
- [x] Confirmed
Plugin Version
4.16.0
Flutter Doctor
[!] Flutter (Channel stable, 3.27.0, on Microsoft Windows [Version 10.0.26100.6899], locale en-IN)
• Flutter version 3.27.0 on channel stable at D:\FVM\Versions\default
! Warning: `flutter` on your path resolves to D:\FVM\Versions\versions\3.27.0\bin\flutter, which is not inside your
current Flutter SDK checkout at D:\FVM\Versions\default. Consider adding D:\FVM\Versions\default\bin to the front
of your path.
! Warning: `dart` on your path resolves to D:\FVM\Versions\versions\3.27.0\bin\dart, which is not inside your
current Flutter SDK checkout at D:\FVM\Versions\default. Consider adding D:\FVM\Versions\default\bin to the front
of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 8495dee1fd (11 months ago), 2024-12-10 14:23:39 -0800
• Engine revision 83bacfc525
• Dart version 3.6.0
• DevTools version 2.40.2
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
to perform update checks and upgrades.
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\saravanakumar.g\AppData\Local\Android\sdk
X cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/to/windows-android-setup for more details.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.1)
• Android Studio at D:\Backup\android-studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
[√] Android Studio (version 2024.3)
• Android Studio at D:\Backup\android-studio-2024.3.1.13-windows\android-studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
[√] VS Code (version 1.104.0)
• VS Code at C:\Users\saravanakumar.g\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.122.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26100.6899]
• Chrome (web) • chrome • web-javascript • Google Chrome 141.0.7390.123
• Edge (web) • edge • web-javascript • Microsoft Edge 141.0.3537.99
[√] Network resources
• All expected network resources are available.
Mobile operating-system(s)
- [ ] iOS
- [x] Android
Device Manufacturer(s) and Model(s)
Honeywell CT45 device
Device operating-systems(s)
Android 13
What happened?
The heartbeat listener callback not executed properly in Still mode on this scanner device. But it should execute every one minute interval on foreground or background cases. In 1 hour time period it was executed one or two times only.
but other mobile devices heartbeat callback executed correctly in still mode on every one minute interval.
Plugin Code and/or Config
static bg.Config config = bg.Config(
preventSuspend: true,
enableHeadless: true,
desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
distanceFilter: 100, // 100meters
disableElasticity: false,
elasticityMultiplier: 4.0,
stopOnTerminate: false,
stationaryRadius: 10.0,
startOnBoot: true,
debug: kDebugMode,
stopOnStationary: false,
stopTimeout: 5, // 5min
disableStopDetection: Platform.isIOS ? true : false,
pausesLocationUpdatesAutomatically: false,
heartbeatInterval: Flavor.isCA() ? 180 : 60, //CA 3 & IEX 1min
logLevel: (Flavor.get() == FlavorsType.iex || Flavor.get() == FlavorsType.ca) ? bg.Config.LOG_LEVEL_INFO : bg.Config.LOG_LEVEL_VERBOSE, // Common
notification:
bg.Notification(channelId:deviceInfo?.packageName,channelName: AppStrings.get()!.locBgNotificationChannelName, title: Flavor.isCA() ? StringConstant.TRACKING_NOTIFY_TITLE_CA : StringConstant.TRACKING_NOTIFY_TITLE_IEX, text: StringConstant.TRACKING_NOTIFY_BODY, priority: bg.Config
.NOTIFICATION_PRIORITY_HIGH,
sticky: true),
geofenceModeHighAccuracy: true,
showsBackgroundLocationIndicator: true);
Relevant log output
See https://dontkillmyapp.com
This sdk implements the public Android API. It does not do anything device-specific. It's well known that certain Android manufacturers violate the Android API (they're not supposed to do that).
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.