Skip to content

Commit 67c79b9

Browse files
authored
Merge pull request #268 from robertohuertasm/fix/delayed_option
fix(delayed_option): allow to schedule notifications
2 parents 965d2a4 + 66132ed commit 67c79b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/create_notification.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class OSCreateNotification extends JSONStringRepresentable {
168168
if (this.iosBadgeType != null)
169169
json['ios_badgeType'] = convertEnumCaseToValue(this.iosBadgeType);
170170
if (this.delayedOption != null)
171-
json['delay_option'] = convertEnumCaseToValue(this.delayedOption);
171+
json['delayed_option'] = convertEnumCaseToValue(this.delayedOption);
172172

173173
// adds buttons
174174
if (this.buttons != null) {

test/create_notification_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void main() {
8686
});
8787

8888
test('expect delayed option to be parsed correctly', () {
89-
expect(notificationJson['delay_option'], 'last_active');
89+
expect(notificationJson['delayed_option'], 'last_active');
9090
});
9191

9292
test('expect delivery time of day to be parsed correctly', () {

0 commit comments

Comments
 (0)