1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Electron, Mobile: Created alarm service and drivers

This commit is contained in:
Laurent Cozic
2017-11-27 22:50:46 +00:00
parent 748acdf03f
commit 9a40851c77
26 changed files with 367 additions and 85 deletions

View File

@@ -0,0 +1,23 @@
class AlarmServiceDriverNode {
async clearNotification(id) {
console.info('AlarmServiceDriverNode::clearNotification', id);
}
async scheduleNotification(notification) {
console.info('AlarmServiceDriverNode::scheduleNotification', notification);
// const androidNotification = {
// id: notification.id,
// message: notification.title.substr(0, 100), // No idea what the limits are for title and body but set something reasonable anyway
// date: notification.date,
// };
// if ('body' in notification) androidNotification.body = notification.body.substr(0, 512);
// PushNotification.localNotificationSchedule(androidNotification);
}
}
module.exports = AlarmServiceDriverNode;