From 179104cf4fd234edb465982716864c908baa35af Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 8 Jun 2020 14:37:36 +0200 Subject: [PATCH] feat(core/web): add areEnabled implementation for LocalNotifications (#2900) --- core/src/web/local-notifications.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/web/local-notifications.ts b/core/src/web/local-notifications.ts index 3ce86b4fa7..16b78919d4 100644 --- a/core/src/web/local-notifications.ts +++ b/core/src/web/local-notifications.ts @@ -107,7 +107,9 @@ export class LocalNotificationsPluginWeb extends WebPlugin implements LocalNotif } areEnabled(): Promise { - throw new Error('Method not implemented.'); + return Promise.resolve({ + value: Notification.permission === 'granted' + }); } requestPermission(): Promise {