Merge lp:~artmello/ciborium/ciborium-add_sounds_vibe_notifications into lp:ciborium

Proposed by Arthur Mello
Status: Merged
Approved by: Bill Filler
Approved revision: 168
Merged at revision: 168
Proposed branch: lp:~artmello/ciborium/ciborium-add_sounds_vibe_notifications
Merge into: lp:ciborium
Diff against target: 21 lines (+4/-0)
1 file modified
notifications/notifications.go (+4/-0)
To merge this branch: bzr merge lp:~artmello/ciborium/ciborium-add_sounds_vibe_notifications
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team Pending
Review via email: mp+304011@code.launchpad.net

Commit message

Add sound and vibration to the notification

Description of the change

Add sound and vibration to the notification

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'notifications/notifications.go'
2--- notifications/notifications.go 2014-09-17 03:29:33 +0000
3+++ notifications/notifications.go 2016-08-25 21:42:06 +0000
4@@ -73,6 +73,8 @@
5 Popup: true,
6 Persist: true,
7 },
8+ RawSound: json.RawMessage(`"sounds/ubuntu/notifications/Slick.ogg"`),
9+ RawVibration: json.RawMessage(`{"pattern": [100, 100], "repeat": 2}`),
10 },
11 }
12 return pm
13@@ -90,6 +92,8 @@
14 // triggered by this push message.
15 type Notification struct {
16 Card *Card `json:"card,omitempty"`
17+ RawSound json.RawMessage `json:"sound"`
18+ RawVibration json.RawMessage `json:"vibrate"`
19 }
20
21 // Card is part of a notification and represents the user visible hints for

Subscribers

People subscribed via source and target branches