diff --git a/src/core/services/local-notifications.ts b/src/core/services/local-notifications.ts index d10df4c94..8992c01aa 100644 --- a/src/core/services/local-notifications.ts +++ b/src/core/services/local-notifications.ts @@ -71,9 +71,8 @@ export class CoreLocalNotificationsProvider { async initialize(): Promise { await CorePlatform.ready(); - if (!this.isAvailable()) { - return; - } + // Request permission when the app starts. + LocalNotifications.requestPermission(); // Listen to events. this.triggerSubscription = LocalNotifications.on('trigger').subscribe((notification: ILocalNotification) => {