Android 13 Scan issue
See original GitHub issueAfter install Android 13, SDK 33, There is no results in DeveceDiscovered.
I`m sure device is available for scaning and it near me. I can see it from phone bluetooth settings/ Device is ble. Bluetooth is On and permissions are done in manifest and runtime. Bluetooth.Scan/advertize/admin/previleged/connect.Location permissions, nearby devices/hardware.bluetooth_le etc.
Anybody implement it on Android 13? Where can be a problem
Issue Analytics
- State:
- Created 8 months ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
PSA: If you updated to Android 13 and can't use the "Scan ...
PSA: If you updated to Android 13 and can't use the "Scan QRCode" quick-settings tile due to it being "unavailable", update your camera...
Read more >Issue with Scan Storage setting in Android 13 - Discussions
Hello, I'm using Intercept X for Mobile on a Nokia C32 running Android 13 and I could no longer turn on the Scan...
Read more >Re:Scan QR Code not working on Android 13.
In Android 13, we have a new feature which is scan QR code tile option. However, it is not working on my device....
Read more >Quick Settings QR code scanner bottom is disabled after ...
A week ago I update my pixel 5 to the new android 13 and after that I'm unable to use the new qr...
Read more >6 Best Ways to Fix QR Code Scanner Not Working on ...
6 Best Ways to Fix QR Code Scanner Not Working on Android · 1. Clean Your Camera Lens · 2. Check the Lighting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So i fix this in my code, here is some things i did:
Manifest: <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" /> <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" /> <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" /> <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-feature android:name="android.hardware.bluetooth" android:required="true" /> <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" /> <uses-feature android:name="android.software.companion_device_setup" /> <uses-feature android:name="android.hardware.location" android:required="false" />
Additionaly there is permission called in phone “NEARBY DEVICES”. You should ask user in runtime from ANDROID project, I ask from additional service. Permissions namespace Xamarin.Essensials (From core I use Plugin.Permissions and its ok):
public async Task<PermissionStatus> CheckAndRequestBluetoothPermissions() { PermissionStatus status; if (Android.OS.Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.S) { status = await Permissions.CheckStatusAsync<BluetoothSPermission>();
After all this things, it starts work. Note if you dont have exeptions, but DeviceDiscovered() and DeviceAdvertised() not starts, its permissions issue. I hope you will be OK with this