Fixed params error

This commit is contained in:
Hevin 2017-12-08 21:35:42 +08:00
parent 4f4a7e44f8
commit 29970cd306

View File

@ -14,7 +14,7 @@ export interface AliasOptions {
@Plugin({ @Plugin({
pluginName: 'JPush', pluginName: 'JPush',
plugin: 'jpush-phonegap-plugin', plugin: 'jpush-phonegap-plugin',
pluginRef: 'jPush', pluginRef: 'plugins.jPushPlugin',
repo: 'https://github.com/jpush/jpush-phonegap-plugin', repo: 'https://github.com/jpush/jpush-phonegap-plugin',
install: 'ionic cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_app_key', install: 'ionic cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_app_key',
installVariables: ['APP_KEY'], installVariables: ['APP_KEY'],
@ -104,7 +104,7 @@ export class JPush extends IonicNativePlugin {
getApplicationIconBadgeNumber(): Promise<any> { return; } getApplicationIconBadgeNumber(): Promise<any> { return; }
@Cordova() @Cordova()
addLocalNotificationForIOS(delayTime: number, content: string, badge: number, notificationId: number, extras?: string): Promise<any> { return; } addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: string): Promise<any> { return; }
@Cordova() @Cordova()
deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise<any> { return; } deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise<any> { return; }