diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index 0d5d866da..604be908d 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -219,6 +219,7 @@ export interface Channel { id: string; description: string; importance: Priority; + sound?: string; } export type PushEvent = string; @@ -332,17 +333,21 @@ export class Push extends IonicNativePlugin { /** * Create a new notification channel for Android O and above. - * @param channel {Channel} + * @param [channel] {Channel} */ - @Cordova() - createChannel(channel: Channel): Promise { return; } + @Cordova({ + callbackOrder: 'reverse' + }) + createChannel(channel?: Channel): Promise { return; } /** * Delete a notification channel for Android O and above. - * @param id + * @param [id] */ - @Cordova() - deleteChannel(id: string): Promise { return; } + @Cordova({ + callbackOrder: 'reverse' + }) + deleteChannel(id?: string): Promise { return; } /** * Returns a list of currently configured channels.