chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
779 stars 469 forks source link

[Help]: startScan doesn't start with removeIfGone #807

Closed kent-williams closed 8 months ago

kent-williams commented 8 months ago

Requirements

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.31.16

Flutter Version

3.19.3

What OS?

Android

OS Version

Android 14

Bluetooth Module

Nordic nRF52840

What is your problem?

startScan works as expected when not using removeIfGone, and doesn't start when including it. This used to work fine before upgrading to a more recent version.

FlutterBluePlus.startScan(
      timeout: const Duration(seconds: 2),
      removeIfGone: const Duration(seconds: 1)
    );

Logs

Working
=====================

D/[FBP-Android]( 9574): [FBP] onMethodCall: setLogLevel
I/flutter ( 9574): [FBP] <setLogLevel> result: true
I/flutter ( 9574): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android]( 9574): [FBP] onMethodCall: startScan
D/BluetoothAdapter( 9574): isLeEnabled(): ON
D/BluetoothLeScanner( 9574): onScannerRegistered() - status=0 scannerId=3 mScannerId=0
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] <startScan> result: true
I/flutter ( 9574): [FBP] <stopScan> args: null
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -40, connectable: 1, manufacturer_data: {}, remote_id: F9:E4:C6:0F:13:49, platform_name: Device 841B, tx_power_level: 4, service_data: {}, adv_name: Device 841B}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -82, connectable: 1, manufacturer_data: {47940: 3b070ce702794c67b7}, remote_id: 44:BB:3B:07:0C:E7, platform_name: Nest Cam, service_data: {}, adv_name: Nest Cam, service_uuids: [d2d3f8ef-9c99-4d9c-a2b3-91c85d44326c]}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -61, manufacturer_data: {76: 0908139ac0a801701b581307023678491da8af}, remote_id: 6C:7F:8C:BD:8E:D2, service_data: {}}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -43, connectable: 1, manufacturer_data: {}, remote_id: C8:FF:77:9D:6E:0B, platform_name: YR2-US-MEA0044A, tx_power_level: 5, service_data: {}, adv_name: YR2-US-MEA0044A, service_uuids: [2dd10010-1c37-452d-8979-d1b4a787d0a4]}]}       
D/[FBP-Android]( 9574): [FBP] onMethodCall: stopScan
D/BluetoothAdapter( 9574): isLeEnabled(): ON
I/flutter ( 9574): [FBP] <stopScan> result: true
I/flutter ( 9574): [FBP] <startScan> args: {with_services: [], with_remote_ids: [], with_names: [], with_keywords: [], with_msd: [], with_service_data: [], continuous_updates: false, continuous_divisor: 1, android_scan_mode: 2, android_uses_fine_location: false}
D/[FBP-Android]( 9574): [FBP] onMethodCall: startScan
D/BluetoothAdapter( 9574): isLeEnabled(): ON
D/BluetoothLeScanner( 9574): onScannerRegistered() - status=0 scannerId=3 mScannerId=0
I/flutter ( 9574): [FBP] <startScan> result: true
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -72, connectable: 1, manufacturer_data: {1447: 98e7822a56ea30aee9}, remote_id: F3:33:99:87:37:1E, platform_name: S18 D564 LE, tx_power_level: 0, service_data: {}, adv_name: S18 D564 LE, service_uuids: [fe07]}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -64, connectable: 1, manufacturer_data: {1794: 210e0401000c0f01ac04e301be272b5c022c011b019e}, remote_id: D4:A3:57:5E:F5:CF, platform_name: Aranet4 20A65, service_data: {}, adv_name: Aranet4 20A65, service_uuids: [fce0]}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -67, manufacturer_data: {76: 0908136ac0a801a21b58}, remote_id: 34:CB:E7:3B:7F:D1, service_data: {}}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -78, connectable: 1, manufacturer_data: {76: 0c0e002e4460bf5c105c386571d1496710067a1d4cd95e18}, remote_id: 78:8B:36:CD:3A:16, service_data: {}}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -41, connectable: 1, manufacturer_data: {}, remote_id: F9:E4:C6:0F:13:49, platform_name: Device 841B, tx_power_level: 4, service_data: {}, adv_name: Device 841B}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -69, connectable: 1, manufacturer_data: {76: 10050014b1a3db}, remote_id: 4C:AB:4F:89:B5:56, tx_power_level: 12, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, connectable: 1, manufacturer_data: {1447: 5852a70a1a9033a3e9}, remote_id: E7:E7:79:88:85:F1, platform_name: S14 991E LE, tx_power_level: 0, service_data: {}, adv_name: S14 991E LE, service_uuids: [fe07]}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, manufacturer_data: {76: 130b1baeea49bd2586bd25860016080028aeea49208ad3}, remote_id: 62:55:C4:74:F6:13, service_data: {}}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -82, connectable: 1, manufacturer_data: {47940: 3b070ce702794c67b7}, remote_id: 44:BB:3B:07:0C:E7, platform_name: Nest Cam, service_data: {}, adv_name: Nest Cam, service_uuids: [d2d3f8ef-9c99-4d9c-a2b3-91c85d44326c]}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -83, connectable: 1, manufacturer_data: {76: 100528189fc5da}, remote_id: 42:4C:AE:AD:AF:34, tx_power_level: 8, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -43, manufacturer_data: {76: 12020003}, remote_id: F0:A3:46:E2:43:41, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -62, connectable: 1, manufacturer_data: {820: 85006fb00000}, remote_id: 20:0B:16:3A:A5:1F, service_data: {}, service_uuids: [b42e90a2-ade7-11e4-89d3-123b93f75cba]}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -32, connectable: 1, manufacturer_data: {76: 1007331f89ef970b68}, remote_id: 7C:F7:FE:69:89:0F, tx_power_level: 12, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -81, connectable: 1, manufacturer_data: {76: 1005201806bff5}, remote_id: 52:A3:F6:74:94:1E, tx_power_level: 8, service_data: {}}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -89, connectable: 1, manufacturer_data: {76: 10020200}, remote_id: 6C:34:8D:AC:D5:4E, tx_power_level: 5, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -72, connectable: 1, manufacturer_data: {1447: 98e7822e04e230aee9}, remote_id: F3:33:05:0C:18:09, platform_name: S18 876C LE, tx_power_level: 0, service_data: {}, adv_name: S18 876C LE, service_uuids: [fe07]}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -88, connectable: 1, manufacturer_data: {1447: 98e782cd72ee3394e9}, remote_id: ED:ED:26:3A:55:1C, platform_name: S26 F160 LE, tx_power_level: 0, service_data: {}, adv_name: S26 F160 LE, service_uuids: [fe07]}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -59, connectable: 1, manufacturer_data: {76: 0f05900067f56a10020504}, remote_id: 48:E8:16:C6:DA:F6, tx_power_level: 12, service_data: {}}]}
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -45, connectable: 1, manufacturer_data: {}, remote_id: C8:FF:77:9D:6E:0B, platform_name: YR2-US-MEA0044A, tx_power_level: 5, service_data: {}, adv_name: YR2-US-MEA0044A, service_uuids: [2dd10010-1c37-452d-8979-d1b4a787d0a4]}]}       
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -81, connectable: 1, manufacturer_data: {}, remote_id: 7A:D0:38:96:D5:90, platform_name: NZP2D, service_data: {feaf: 1001000200e10c00a5cb215d0066166401}, adv_name: NZP2D, service_uuids: [feaf]}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -55, manufacturer_data: {76: 0908139ac0a801701b581307023678491da8af}, remote_id: 6C:7F:8C:BD:8E:D2, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -32, manufacturer_data: {76: 12020002}, remote_id: E1:10:A2:35:C2:EF, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -65, connectable: 1, manufacturer_data: {1794: 210e0401000c0f01ac04e301be272b5c022c011c019e}, remote_id: D4:A3:57:5E:F5:CF, platform_name: Aranet4 20A65, service_data: {}, adv_name: Aranet4 20A65, service_uuids: [fce0]}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -87, manufacturer_data: {76: 09081312c0a801f11b58}, remote_id: 52:73:E7:DF:55:3C, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -97, manufacturer_data: {117: 420401806664e7d8571c2566e7d8571c240131dd59000000}, remote_id: 64:E7:D8:57:1C:25, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -89, connectable: 1, manufacturer_data: {196: 023315131780}, remote_id: 6D:4D:74:4D:DF:33, platform_name: [LG] webOS TV NANO85UNA, tx_power_level: -44, service_data: {}, adv_name: [LG] webOS TV NANO85UNA, service_uuids: [feb9]}]}    
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -67, manufacturer_data: {224: 0148ca5deab1}, remote_id: 63:6F:09:9D:B7:BB, service_data: {fe9f: 0000000000000000000000000000000000000000}, service_uuids: [fe9f]}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -35, connectable: 1, manufacturer_data: {76: 12022e02071106498330dac56f71d0fb311eabc5d9c5d3}, remote_id: D4:8C:55:64:76:9C, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -76, connectable: 1, manufacturer_data: {17478: 3030343541353236}, remote_id: 84:CC:A8:7C:73:0E, platform_name: SPU-00014774-V002, tx_power_level: 3, service_data: {}, adv_name: SPU-00014774-V002, service_uuids: [ffff]}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -79, manufacturer_data: {76: 12020002}, remote_id: CD:72:16:AB:D2:3B, service_data: {}}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] [[ OnScanResponse ]] result: {advertisements: [{rssi: -68, connectable: 1, manufacturer_data: {}, remote_id: DB:48:9B:E5:1F:50, platform_name: N02MP, service_data: {feaf: 100100025a230900cdfcf3000030b41800}, adv_name: N02MP, service_uuids: [feaf]}]}
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
D/[FBP-Android]( 9574): [FBP] onScanResult
I/flutter ( 9574): [FBP] <stopScan> args: null
D/[FBP-Android]( 9574): [FBP] onMethodCall: stopScan
D/BluetoothAdapter( 9574): isLeEnabled(): ON
I/flutter ( 9574): [FBP] <stopScan> result: true
====================
Not Working
I/flutter ( 9574): [FBP] <setLogLevel> args: 5
D/[FBP-Android]( 9574): [FBP] onMethodCall: setLogLevel
Performing hot reload...
Reloaded 0 libraries in 389ms (compile: 16 ms, reload: 0 ms, reassemble: 230 ms).
I/flutter ( 9574): [FBP] <setLogLevel> result: true
D/TrafficStats( 9574): tagSocket(193) with statsTag=0xffffffff, statsUid=-1
D/TrafficStats( 9574): tagSocket(177) with statsTag=0xffffffff, statsUid=-1
chipweinberger commented 8 months ago

what is the first version that broke it?

kent-williams commented 8 months ago

I searched the releases for removeIfGone and found the breaking change in 1.27.0. I have enabled continuousUpdates, and all is working as expected now.

Thanks!!