Closed TAMHAN closed 1 year ago
Hi @TAMHAN. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Can you try recreating this in a .NET Android application (dotnet new android
) and see if it reproduces there? The likelihood that it's a MAUI UI Framework issue that could be solved in this repo is, IMO, quite slim. We should be able to verify that by making a new .NET Android app with no MAUI UI involved.
Hello drastications and msftbot, thank you all so much for the kind response. And thanks Tim for e-mailing me.
The situation is weird. Kiddo and I changed the code like so: ` public class BluetoothLEPermissions : Permissions.BasePlatformPermission { public override (string androidPermission, bool isRuntime)[] RequiredPermissions { get { return new List<(string androidPermission, bool isRuntime)> {
(Manifest.Permission.Bluetooth, true),
(Manifest.Permission.BluetoothAdmin, true),
(Manifest.Permission.BluetoothScan, true), //DISABLE FOR KFONWI
(Manifest.Permission.BluetoothConnect, true), //DISABLE FOR KFONWI
(Manifest.Permission.AccessFineLocation, true),
(Manifest.Permission.AccessCoarseLocation, true), //DISABLE FOR KFONWI
//(Manifest.Permission.AccessBackgroundLocation, true),
`
And then it worked on the Kindle, but not anymore on the Samsung. Probably we will just make a version dependent "hinge" thingy in the software, creating on demand two different permission lists and call it a day.
The core issue, IMHO is that MAUI has no Bluetooth LE API of its own.
So, as we say in Austria, if you take this discovery and 100000 EUR to the Tatra Banka in Gorkeho, you can open a bank account.
Nevertheless, it was a big honour to work with you on this, and apologies for time wasted.
Tam
Description
Dear Ladies and Gentlemen, please allow me to report a weird incident. In advance, apologies for the weird formatting - I am an old coder with little experience with Git (CVS and MantisBT for me).
I have an application which me and my African-American client have successfully used on a variety of Z Flip handsets. All of them connect to a Bluetooth LE peripheral successfully. We also have a Kindle Fire running Android 9.0, and here the application perishes when asking for permissions.
Our manifest bears the following code: `<?xml version="1.0" encoding="utf-8"?>