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 authored 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
Original file line number Diff line number Diff line change
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.