Skip to content

Commit 9595a6f

Browse files
committed
Add new fields to push notification
1 parent 73e473a commit 9595a6f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/SimpleToDoService/Common/PushNotificationScheduler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ async System.Threading.Tasks.Task CreatePushNotification(Task task)
9696
{
9797
app_id = Environment.GetEnvironmentVariable("ONE_SIGNAL_APP_ID"),
9898
contents = new { en = task.Description },
99+
headings = new { en = "Task notification" },
99100
content_available = true,
101+
mutable_content = true,
100102
filters = new[] { new { field = "tag", key = "user_id", relation = "=", value = repository.User(task.UserUuid).FirebaseId } },
101103
send_after = notificationDate.Value.ToString("yyyy-MM-dd HH:mm:ss 'GMT'zzzz")
102104
});

0 commit comments

Comments
 (0)