File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -281,3 +281,35 @@ You can set an authorization token that will be used in an API call.
281281``` dart
282282CleverPush.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+ ```
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ title: Setup
881 . 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
14142. Run ` flutter packages get`
You can’t perform that action at this time.
0 commit comments