From ff78ca7fb4335698076282ec9da99433939f276a Mon Sep 17 00:00:00 2001 From: infacto <60390085+infacto@users.noreply.github.com> Date: Sat, 31 Dec 2022 08:59:22 +0100 Subject: [PATCH] feat(diagnostics): add getBluetoothAuthorizationStatuses function (#4442) --- .../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 78bd39e0c..77bb65602 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.