From f7431ff4d872afafdd744184e44956f68bacaff0 Mon Sep 17 00:00:00 2001 From: infacto <60390085+infacto@users.noreply.github.com> Date: Thu, 24 Nov 2022 15:57:53 +0100 Subject: [PATCH] Added getBluetoothAuthorizationStatuses --- .../plugins/diagnostic/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts b/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts index 78bd39e0c8..77bb656029 100644 --- a/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts +++ b/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts @@ -696,6 +696,17 @@ export class Diagnostic extends AwesomeCordovaNativePlugin { getBluetoothAuthorizationStatus(): Promise { return; } + + /** + * Returns the individual authorization status for each Bluetooth run-time permission on Android 12+ / API 31+ + * On Android 11 / API 30 and below, all will be returned as GRANTED if the manifest has BLUETOOTH since they are implicitly granted at build-time. + * + * @returns {Promise} + */ + @Cordova({ platforms: ['Android'] }) + getBluetoothAuthorizationStatuses(): Promise { + return; + } /** * Checks if the application is authorized to use external storage.