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

Crash of the App when StartScan() is called with BLUETOOTH_SCAN permission #739

Open
MSMTjd opened this issue Nov 8, 2022 · 2 comments
Open

Comments

@MSMTjd
Copy link

MSMTjd commented Nov 8, 2022

Hi !

My app crash when startScan() function is called.

This only happens when the BLUETOOTH_SCAN permission is allowed.
I use the requestPermissionBtScan() function, allowed it when the window appear, and when I hit my search button that call startScan(), my app is closed without any error message.
I try to use the "android-permission" plugin, and same problems.

Issue #736 seem to be the same problems, but the solution doesn't work for me.

I precise that I'm not an expert and work on a legacy code.

@Tweakie
Copy link

Tweakie commented Feb 1, 2023

Where you able to solve the issue? I'm experiencing the same issue.

@Tweakie
Copy link

Tweakie commented Feb 1, 2023

Solved the issue. When you are scanning and you are specifying services to filter on you also need to have Connect permissions. If you don't request them the app crashes on start-up.

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

2 participants