diff --git a/src/@ionic-native/plugins/phonegap-local-notification/index.ts b/src/@ionic-native/plugins/phonegap-local-notification/index.ts index 106955636..3c1b02496 100644 --- a/src/@ionic-native/plugins/phonegap-local-notification/index.ts +++ b/src/@ionic-native/plugins/phonegap-local-notification/index.ts @@ -8,7 +8,7 @@ export class PLNObject { private _objectInstance: any; constructor(title: string, options: LocalNotificationOptions) { - if (checkAvailability('Notification') === true) { + if (checkAvailability(PhonegapLocalNotifications.pluginRef, null, PhonegapLocalNotifications.pluginName) === true) { this._objectInstance = new Notification(title, options); } }