[Android Permissions Plugin] [Android 12] android.permission.BLUETOOTH always no permission
android-permissions-plugin
Mobile icon
Forge component by Miguel 'Kelter' 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

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.