151
Views
4
Comments
Solved
[Android Permissions Plugin] [Android 12] android.permission.BLUETOOTH always no permission
android-permissions-plugin
Mobile icon
Forge asset by Miguel Antunes
Application Type
Mobile
Service Studio Version
11.14.8 (Build 58515)

Hi,

I am trying to call request authorization and expected an android popup would trigger android.permission.BLUETOOTH and android.permission.ADMIN_BLUETOOTH request but nothing happens. Always returns no authorization for Bluetooth.


This behavior is only with a specific device with Android 12 version even if bluetooth is active. While with other devices the authorization is automatic so it works correctly.


Does anyone know how to fix this?


Thanks,

PierPaolo

UserImage.jpg
Pier Paolo Annis
Solution

I replaced these two lines in the manifest:

  • <uses-permission    android:name="android.permission.BLUETOOTH"   android:maxSdkVersion="30" />
  • <uses-permission   android:name="android.permission.BLUETOOTH_ADMIN"  android:maxSdkVersion="30"/>

with:

  • <uses-permission    android:name="android.permission.BLUETOOTH"    />
  • <uses-permission   android:name="android.permission.BLUETOOTH_ADMIN" />

and it works.

2024-09-17 18-14-33
Miguel Defavari da Silva

Hello!

Hope you are doing well, I'm facing the same issue and I don't know how to change the android app manifest, can you explain how to do this?

Thanks in advance,

Best regards!

UserImage.jpg
Geuvan Jr

Hello,


Go to GitHub project make a forke and than change those lines the file "plugin.xml" after this go to your OutSystems project and change the extensibility configurations to your git fork.



Cheers.

 

2025-07-28 12-04-15
Vitor Crivano
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.