diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index bdb8f132..27a22361 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -53,6 +53,8 @@ export interface NotificationData { * } * }) * + * this.fcm.clearAllNotifications(); + * * this.fcm.unsubscribeFromTopic('marketing'); * * ``` @@ -150,4 +152,14 @@ export class FCM extends IonicNativePlugin { onNotification(): Observable { return; } + + /** + * Removes existing push notifications from the notifications center + * + * @returns {Promise} + */ + @Cordova() + clearAllNotifications(): void { + return; + } }