You've already forked joplin
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:
23
ReactNativeClient/lib/services/AlarmServiceDriverNode.js
Normal file
23
ReactNativeClient/lib/services/AlarmServiceDriverNode.js
Normal 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;
|
||||
Reference in New Issue
Block a user