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

iOS not scanning peripherals when scanning again immediately #624

Open
iamongit opened this issue Jul 26, 2022 · 0 comments
Open

iOS not scanning peripherals when scanning again immediately #624

iamongit opened this issue Jul 26, 2022 · 0 comments

Comments

@iamongit
Copy link

iamongit commented Jul 26, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant