Skip to content

Commit

Permalink
feat(core/web): add areEnabled implementation for LocalNotifications (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jansgescheit committed Jun 8, 2020
1 parent b4815a5 commit 179104c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/web/local-notifications.ts
Expand Up @@ -107,7 +107,9 @@ export class LocalNotificationsPluginWeb extends WebPlugin implements LocalNotif
}

areEnabled(): Promise<LocalNotificationEnabledResult> {
throw new Error('Method not implemented.');
return Promise.resolve({
value: Notification.permission === 'granted'
});
}

requestPermission(): Promise<NotificationPermissionResponse> {
Expand Down

0 comments on commit 179104c

Please sign in to comment.