Skip to content

Commit feb91bb

Browse files
author
cpandya25
committed
Added removeAllNotifications method.
Added removeAllNotifications method.
1 parent e46fafc commit feb91bb

5 files changed

Lines changed: 64 additions & 0 deletions

File tree

docs/sdks/android/methods.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,26 @@ CleverPush.getInstance(this).removeNotification("Notification ID", true)
10391039

10401040
<!--END_DOCUSAURUS_CODE_TABS-->
10411041

1042+
**Remove all notifications from local storage**
1043+
1044+
You can remove all notifications stored locally using the following method:
1045+
1046+
<!--DOCUSAURUS_CODE_TABS-->
1047+
1048+
<!--Java-->
1049+
1050+
```java
1051+
CleverPush.getInstance(this).removeAllNotifications();
1052+
```
1053+
1054+
<!--Kotlin-->
1055+
1056+
```kotlin
1057+
CleverPush.getInstance(this).removeAllNotifications()
1058+
```
1059+
1060+
<!--END_DOCUSAURUS_CODE_TABS-->
1061+
10421062

10431063
## Notification Styles
10441064

docs/sdks/expo/methods.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@ You can remove a notification both stored locally and from the Notification Cent
315315
CleverPush.removeNotification("Notification_ID", true);
316316
```
317317
318+
**Remove all notifications from local storage**
319+
320+
You can remove all notifications stored locally using the following method:
321+
322+
```javascript
323+
CleverPush.removeAllNotifications();
324+
```
325+
318326
## Disabling App Banners
319327
320328
You can also disable app banners temporarily, e.g. during a splash screen. Banners are enabled by default.

docs/sdks/flutter/methods.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,14 @@ CleverPush.shared.removeNotification(
306306
);
307307
```
308308

309+
**Remove all notifications from local storage**
310+
311+
You can remove all notifications stored locally using the following method:
312+
313+
```dart
314+
CleverPush.shared.removeAllNotifications();
315+
```
316+
309317
**Clear all notifications from the notification center**
310318

311319
You can remove all notifications from the notification center only (this does not clear locally stored notifications):

docs/sdks/ios/methods.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,26 @@ CleverPush.removeNotification("notification_Id")
425425
426426
<!--END_DOCUSAURUS_CODE_TABS-->
427427
428+
**Remove all notifications from local storage**
429+
430+
You can remove all notifications stored locally using the following method:
431+
432+
<!--DOCUSAURUS_CODE_TABS-->
433+
434+
<!--Swift-->
435+
436+
```swift
437+
CleverPush.removeAllNotifications()
438+
```
439+
440+
<!--Objective-C-->
441+
442+
```objective-c
443+
[CleverPush removeAllNotifications];
444+
```
445+
446+
<!--END_DOCUSAURUS_CODE_TABS-->
447+
428448
## App Banners
429449

430450
(Available from version 1.3.0)

docs/sdks/react-native/methods.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@ You can remove a notification both stored locally and from the Notification Cent
315315
CleverPush.removeNotification("Notification_ID", true);
316316
```
317317
318+
**Remove all notifications from local storage**
319+
320+
You can remove all notifications stored locally using the following method:
321+
322+
```javascript
323+
CleverPush.removeAllNotifications();
324+
```
325+
318326
## Disabling App Banners
319327
320328
You can also disable app banners temporarily, e.g. during a splash screen. Banners are enabled by default.

0 commit comments

Comments
 (0)