Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help]: Flutter Scanning Not Functioning in the Background (Android and iOS) #982

Closed
1 task done
NaynaAsodariya opened this issue Aug 28, 2024 · 1 comment
Closed
1 task done
Labels
help Questions, help, observations, or possible bugs

Comments

@NaynaAsodariya
Copy link

NaynaAsodariya commented Aug 28, 2024

Requirements

  • I've looked at the README 'Common Problems' section

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.32.12

Flutter Version

3.24.0

What OS?

macOS

OS Version

iOS 17.5.1, macOS 14.5

Bluetooth Module

Build-in BLE module on iPhone 14 Pro Max.

What is your problem?

scanResults are alway empty when app is in the background for both Android and IOS.

Can anyone please help me to work ble scanning when app is in the background.

Logs

App is in background mode

flutter: Scanning try: 2
flutter: Scan result is []
flutter: Scanning try: 3
flutter: Scan result is []
flutter: Scanning try: 4
flutter: Scan result is []
flutter: Scanning try: 5
flutter: Scan result is []

App is in Foreground mode

flutter: Scanning try: 6
flutter: Scan result is []
flutter: Scan result is [ScanResult{device: BluetoothDevice{remoteId: ---------, platformName: ---, services: null}, advertisementData: AdvertisementData{advName: ----, txPowerLevel: null, appearance: null, connectable: true, manufacturerData: {}, serviceData: {-----}, serviceUuids: []}, rssi: -55, timeStamp: 2024-08-28 12:15:28.668836}]
@NaynaAsodariya NaynaAsodariya added the help Questions, help, observations, or possible bugs label Aug 28, 2024
@chipweinberger
Copy link
Owner

chipweinberger commented Aug 28, 2024

#846

#930

existing issues ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Questions, help, observations, or possible bugs
Projects
None yet
Development

No branches or pull requests

2 participants