Skip to content

Commit

Permalink
Updates version information for 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangomz committed Nov 3, 2021
1 parent 062aa84 commit 79ccecd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@
> Release date: 02/Nov/2021
* Updates ummobile_custom_http package to 0.0.3
* Fixes dynamic return to typed one

## 0.0.4
> Release date: 03/Nov/2021
* Adds `markAsReceived` function for user notifications
21 changes: 19 additions & 2 deletions example/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
- [Notifications](#notifications)
- [`getAll()`](#getall)
- [`getOne(String notificationId)`](#getonestring-notificationid)
- [`markAsReceived(String notificationId)`](#markasreceivedstring-notificationid)
- [`markAsSeen(String notificationId)`](#markasseenstring-notificationid)
- [`delete(String notificationId)`](#deletestring-notificationid)
- [`sendAnalytics()`](#sendanalytics)
- [~~`sendAnalytics()`~~](#sendanalytics)
- [COVID questionnaire](#covid-questionnaire)
- [`getAnswers()`](#getanswers)
- [`getTodayAnswers()`](#gettodayanswers)
Expand Down Expand Up @@ -317,6 +318,20 @@ Notification notification =
);
```

#### `markAsReceived(String notificationId)`
Marks a notification as received.
```dart
Notification notification =
await sdk.notifications.getOne('NOTIFICATION_ID');
print(notification.isReceived); // false
Notification receivedNotification =
await sdk.notifications.markAsReceived(notification.id);
print(receivedNotification.isReceived); // true
```

#### `markAsSeen(String notificationId)`
Marks a notification as seen.
```dart
Expand Down Expand Up @@ -345,7 +360,9 @@ Notification deletedNotification =
print(deletedNotification.isDeleted); // true
```

#### `sendAnalytics()`
#### ~~`sendAnalytics()`~~
> **Deprecated:** Use `markAsReceived` or `markAsSeen`
Sends a new user event for a notification.

Some events are "clicked" that is equivalent to read or see the notification, and "received" that means that the notification was received by the user cellphone.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ummobile_sdk
description: The SDK package used in the UMMobile App to connect with the server.
version: 0.0.3
version: 0.0.4
homepage: https://github.com/UMMobile/ummobile_sdk

environment:
Expand Down

0 comments on commit 79ccecd

Please sign in to comment.