Skip to content

Commit

Permalink
refactor(phonegap-local-notification): fix class name to match plugin…
Browse files Browse the repository at this point in the history
… name

BREAKING CHANGE: PhonegapLocalNotifications class has been renamed to PhonegapLocalNotification
  • Loading branch information
ihadeed committed Jun 3, 2017
1 parent c3f9fb4 commit c6a76c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/@ionic-native/plugins/phonegap-local-notification/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Injectable } from '@angular/core';
import { Cordova, CordovaInstance, Plugin, IonicNativePlugin, checkAvailability } from '@ionic-native/core';

declare var Notification: any;
declare const Notification: any;

export class PLNObject {

private _objectInstance: any;

constructor(title: string, options: LocalNotificationOptions) {
if (checkAvailability(PhonegapLocalNotifications.pluginRef, null, PhonegapLocalNotifications.pluginName) === true) {
if (checkAvailability(PhonegapLocalNotification.pluginRef, null, PhonegapLocalNotification.pluginName) === true) {
this._objectInstance = new Notification(title, options);
}
}
Expand Down Expand Up @@ -55,7 +55,7 @@ export interface LocalNotificationOptions {
*
* @usage
* ```
* import { PhonegapLocalNotifications } from '@ionic-native/phonegap-local-notifications';
* import { PhonegapLocalNotification } from '@ionic-native/phonegap-local-notification';
*
*
* constructor(private localNotification: PhonegapLocalNotifications) { }
Expand Down Expand Up @@ -87,10 +87,10 @@ export interface LocalNotificationOptions {
plugin: 'phonegap-local-notifications',
pluginRef: 'Notification',
repo: 'https://github.com/phonegap/phonegap-plugin-local-notification',
platforms: ['Android', , 'Browser', 'iOS', 'Windows']
platforms: ['Android', 'Browser', 'iOS', 'Windows']
})
@Injectable()
export class PhonegapLocalNotifications extends IonicNativePlugin {
export class PhonegapLocalNotification extends IonicNativePlugin {

/**
* A global object that lets you interact with the Notification API.
Expand Down

0 comments on commit c6a76c2

Please sign in to comment.