From b572a10a6e1e4063fdd19a04acc09d049b973d67 Mon Sep 17 00:00:00 2001 From: infacto <60390085+infacto@users.noreply.github.com> Date: Sun, 9 Oct 2022 16:31:00 +0200 Subject: [PATCH] feat(diagnostic): extend parameter for requestLocationAuthorization (#4350) --- src/@awesome-cordova-plugins/plugins/diagnostic/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts b/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts index 3913f147a..e00028587 100644 --- a/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts +++ b/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts @@ -88,7 +88,6 @@ export class Diagnostic extends AwesomeCordovaNativePlugin { }; /** - * iOS ONLY * Location accuracy authorization */ locationAccuracyAuthorization = { @@ -294,11 +293,12 @@ export class Diagnostic extends AwesomeCordovaNativePlugin { * Returns the location authorization status for the application. * Note for Android: this is intended for Android 6 / API 23 and above. Calling on Android 5 / API 22 and below will always return GRANTED status as permissions are already granted at installation time. * - * @param {string} [mode] iOS only: location authorization mode: "always" or "when_in_use". If not specified, defaults to "when_in_use". + * @param {string} [mode] location authorization mode: "always" or "when_in_use". If not specified, defaults to "when_in_use". (this.locationAuthorizationMode) + * @param {string} [accuracy] requested location accuracy: "full" or "reduced". If not specified, defaults to "full". (this.locationAccuracyAuthorization) * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - requestLocationAuthorization(mode?: string): Promise { + requestLocationAuthorization(mode?: string, accuracy?: string): Promise { return; }