bob63
June 9, 2023, 8:44pm
1
Hi, my application when activated must connect via bluetooth ble a device with specific mac address.
I'm migrating to the new BT BLE version because I've android 13 and after have changed the extension version I've started to have isses with some permissions.
I'm using BluetoothBLE Extension Version: 20230223-beta and when start the application I got this kind of error :
This is part of code where I ask the permissions for flilocation and bluetoothscan:
If I disable the block to ask FileLocation permission I've the same issue with the Bluetoothscan permission.
Is there someone able to give me an help ?
Is there any clear example from which start ?
In Android Setting under Applications I don't see any possibility to gran additional accesses to my APP .
Thanks Roberto.
Anke
June 9, 2023, 10:16pm
2
Try this and post a screenshot:
Quite a few users are currently having problems with the (new) BLE extension .
Here is a test app. Test it on your devices and post screenshots before and after scanning and connecting.
Location permission is requested automatically (so disable it before testing).
[grafik] [grafik]
EDIT: See also here:
bob63
June 10, 2023, 8:02am
3
Hi Anke,
here the screenshoot . I'm not able to catch the screenshoot where is asked the permission , but it works and I'm able to connect my device.
I've also tryed your other App "BLE_permissions_allAndroidVersions.aia" and it works too , but it use BLE extension version 20200616.
bob63
June 11, 2023, 9:06am
4
@Anke I've done other test to understand why adding the permission at screen initialization in my original app I continue to have the same problem. I've create a very simple app with just the ble extesion in beta version and this block taken from you test applicantion and I still have the problem :
here my test app.
While changing your app adding just this block to connect my device it works.
.
Is it possible that on top to the ble extension is there some other component that I've to update ?
Please provide the phone model, as some Chinese phones have poorly implemented BT permissions.
Taifun
June 11, 2023, 1:19pm
7
You are asking for permission and trying to connect at the same time
Only connect AFTER having received the permissions
Taifun
bob63
June 11, 2023, 2:19pm
8
The isse with permission is before start the connection and changing the code in this way nothing change, permission on FineLocation is denied .
If I disable the first permission on FineLocation i got the same error on BLuetooth_connect
bob63
June 11, 2023, 7:04pm
12
@Anke sorry but I've not clear where find this fuction :
bob63
June 11, 2023, 9:50pm
14
@Anke
NOW IS FIXED !
This how my app was before the fix :
An here the change after you last suggestion and extension.
Thanks again for all the support.
1 Like
Anke
June 11, 2023, 10:06pm
15
bob63:
NOW IS FIXED !
Fine, then close the topic by clicking Solution on the best answer.
system
Closed
June 18, 2023, 10:07pm
16
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.