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
=== modified file 'notifications/notifications.go'
--- notifications/notifications.go 2014-09-17 03:29:33 +0000
+++ notifications/notifications.go 2016-08-25 21:42:06 +0000
@@ -73,6 +73,8 @@
73 Popup: true,73 Popup: true,
74 Persist: true,74 Persist: true,
75 },75 },
76 RawSound: json.RawMessage(`"sounds/ubuntu/notifications/Slick.ogg"`),
77 RawVibration: json.RawMessage(`{"pattern": [100, 100], "repeat": 2}`),
76 },78 },
77 }79 }
78 return pm80 return pm
@@ -90,6 +92,8 @@
90// triggered by this push message.92// triggered by this push message.
91type Notification struct {93type Notification struct {
92 Card *Card `json:"card,omitempty"`94 Card *Card `json:"card,omitempty"`
95 RawSound json.RawMessage `json:"sound"`
96 RawVibration json.RawMessage `json:"vibrate"`
93}97}
9498
95// Card is part of a notification and represents the user visible hints for99// Card is part of a notification and represents the user visible hints for

Subscribers

People subscribed via source and target branches