From 29970cd306194f2ec46eaf8e7776915b06be6ba6 Mon Sep 17 00:00:00 2001 From: Hevin Date: Fri, 8 Dec 2017 21:35:42 +0800 Subject: [PATCH] Fixed params error --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index e1615ac..5d875c6 100644 --- a/index.ts +++ b/index.ts @@ -14,7 +14,7 @@ export interface AliasOptions { @Plugin({ pluginName: 'JPush', plugin: 'jpush-phonegap-plugin', - pluginRef: 'jPush', + pluginRef: 'plugins.jPushPlugin', repo: 'https://github.com/jpush/jpush-phonegap-plugin', install: 'ionic cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_app_key', installVariables: ['APP_KEY'], @@ -104,7 +104,7 @@ export class JPush extends IonicNativePlugin { getApplicationIconBadgeNumber(): Promise { return; } @Cordova() - addLocalNotificationForIOS(delayTime: number, content: string, badge: number, notificationId: number, extras?: string): Promise { return; } + addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: string): Promise { return; } @Cordova() deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise { return; }