diff --git a/src/core/services/local-notifications.ts b/src/core/services/local-notifications.ts index 0dac0d8af..7a60f3ded 100644 --- a/src/core/services/local-notifications.ts +++ b/src/core/services/local-notifications.ts @@ -87,6 +87,10 @@ export class CoreLocalNotificationsProvider { protected async init(): Promise { await Platform.instance.ready(); + if (!this.isAvailable()) { + return; + } + // Listen to events. this.triggerSubscription = LocalNotifications.instance.on('trigger').subscribe((notification: ILocalNotification) => { this.trigger(notification);