diff --git a/packages/local-notifications/index.android.ts b/packages/local-notifications/index.android.ts index cc99c905..b7f927e3 100755 --- a/packages/local-notifications/index.android.ts +++ b/packages/local-notifications/index.android.ts @@ -121,7 +121,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements success: (notification) => { onReceived(JSON.parse(notification)); }, - }) + }), ); resolve(); } catch (ex) { @@ -140,7 +140,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements success: (notification) => { onReceived(JSON.parse(notification)); }, - }) + }), ); resolve(); } catch (ex) { @@ -295,9 +295,8 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements } } - private static isAuthorized(result: Result): boolean { - const [status, _] = result; - return status === 'authorized'; + private static isAuthorized(result: Result<'notification'>): boolean { + return result === 'authorized'; } } diff --git a/packages/local-notifications/package.json b/packages/local-notifications/package.json index 03e04619..e24e61ff 100644 --- a/packages/local-notifications/package.json +++ b/packages/local-notifications/package.json @@ -46,6 +46,6 @@ "homepage": "https://github.com/nativescript/plugins", "dependencies": { "@nativescript/shared-notification-delegate": "~1.0.0", - "@nativescript-community/perms": "^2.3.0" + "@nativescript-community/perms": "^3.0.4" } }