Skip to content

Commit 2fccd02

Browse files
author
UnnatiCP
committed
added new methods in flutter doc
* added new methods in flutter doc * updated Android and Flutter sdk version
1 parent 848a830 commit 2fccd02

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

docs/sdks/android/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can find the newest sdk version number here [Android SDK](https://github.com
2121
```groovy
2222
dependencies {
2323
// ...
24-
implementation 'com.cleverpush:cleverpush:1.35.21'
24+
implementation 'com.cleverpush:cleverpush:1.35.22'
2525
}
2626
```
2727

docs/sdks/flutter/methods.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,3 +281,35 @@ You can set an authorization token that will be used in an API call.
281281
```dart
282282
CleverPush.shared.setAuthorizerToken('YOUR_AUTH_TOKEN_HERE');
283283
```
284+
285+
## Remove Notification
286+
287+
(Available from version 1.23.30)
288+
289+
**Remove a notification stored locally**
290+
291+
You can remove a notification from local storage using its notification ID:
292+
293+
294+
```dart
295+
CleverPush.shared.removeNotification('notificationId');
296+
```
297+
298+
**Remove a notification from local storage and the notification center**
299+
300+
You can remove a notification from both local storage and the notification center by setting removeFromNotificationCenter to true:
301+
302+
```dart
303+
CleverPush.shared.removeNotification(
304+
notificationId,
305+
removeFromNotificationCenter: true,
306+
);
307+
```
308+
309+
**Clear all notifications from the notification center**
310+
311+
You can remove all notifications from the notification center only (this does not clear locally stored notifications):
312+
313+
```dart
314+
CleverPush.shared.clearNotificationsFromNotificationCenter();
315+
```

docs/sdks/flutter/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Setup
88
1. Add the following code to your `pubspec.yaml` file
99
```bash
1010
dependencies:
11-
cleverpush_flutter: ^1.24.29
11+
cleverpush_flutter: ^1.24.30
1212
```
1313

1414
2. Run `flutter packages get`

0 commit comments

Comments
 (0)