Skip to content

Android/iOS inconsistency when listening to ConnectionStateUpdate events from connectToDevice() #908

Description

Thank you very much for providing flutter_reactive_ble.

There is an inconsistency between Android and iOS when calling connectToDevice() and listening to ConnectionStateUpdate events from the returned Stream:

  • On Android, DeviceConnectionState.connecting followed by an DeviceConnectionState.connected event is received.
  • On iOS, the DeviceConnectionState.connecting is skipped and only the DeviceConnectionState.connected event arrives.

When listening to FlutterReactiveBle.connectedDeviceStream, both events are receive on iOS as well.

Question now is, is this a bug or an iOS specific limitation of connectToDevice()?

This happens with version 5.4.0 on iOS 18.1. Tested Android version was 13.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions