mirror of https://github.com/BTCPrivate/copay.git
Add vibration and system notifications
This commit is contained in:
parent
bf2f801bea
commit
ddebfee8b1
|
@ -198,7 +198,12 @@ factory('notification', ['$timeout',
|
||||||
$timeout(function removeFromQueueTimeout() {
|
$timeout(function removeFromQueueTimeout() {
|
||||||
queue.splice(queue.indexOf(notification), 1);
|
queue.splice(queue.indexOf(notification), 1);
|
||||||
}, settings[type].duration);
|
}, 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();
|
this.save();
|
||||||
|
|
Loading…
Reference in New Issue