Add vibration and system notifications
This commit is contained in:
parent
bf2f801bea
commit
ddebfee8b1
1 changed files with 5 additions and 0 deletions
|
|
@ -198,7 +198,12 @@ factory('notification', ['$timeout',
|
|||
$timeout(function removeFromQueueTimeout() {
|
||||
queue.splice(queue.indexOf(notification), 1);
|
||||
}, settings[type].duration);
|
||||
}
|
||||
|
||||
// Movile notification
|
||||
window.navigator.vibrate([200,100,200]);
|
||||
if (document.hidden && (type == 'info' || type == 'funds')) {
|
||||
new window.Notification(title, {body: content});
|
||||
}
|
||||
|
||||
this.save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue