Skip to content

Commit 179104c

Browse files
authored
feat(core/web): add areEnabled implementation for LocalNotifications (#2900)
1 parent b4815a5 commit 179104c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/web/local-notifications.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ export class LocalNotificationsPluginWeb extends WebPlugin implements LocalNotif
107107
}
108108

109109
areEnabled(): Promise<LocalNotificationEnabledResult> {
110-
throw new Error('Method not implemented.');
110+
return Promise.resolve({
111+
value: Notification.permission === 'granted'
112+
});
111113
}
112114

113115
requestPermission(): Promise<NotificationPermissionResponse> {

0 commit comments

Comments
 (0)