Skip to content

iOS not scanning peripherals when scanning again immediately #624

@iamongit

Description

@iamongit

There's already an open issue related to this (#580) but in my case it worked fine 1st time and then it's not scanning anything after that. It works fine on Android. My flow is create client, scan, connect, disconnect, destroy client. Then when I create a client again and start scanning it doesn't scan any peripheral. What am I missing?

On Flutter Stable 3.0.5

UPDATE:
So I followed the example workflow and never destroy the client, I just stop scanning and disconnect from the device. Now I am able to scan every time successfully. Is this the right way to do it as I'm not destroying the client after I'm done scanning and pairing? If I destroy the client and then create a new one I am not able to perform any operations using the bleManager, not just scanning.

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