Improve tinymce autosave and notification web click solved

This commit is contained in:
Eudes Inácio
2023-08-08 15:40:10 +01:00
parent 5cf48c1b2f
commit bf89e46841
10 changed files with 109 additions and 63 deletions
@@ -15,26 +15,33 @@ export class NativeNotificationService {
askForPermission() {
LocalNotifications.requestPermissions()
/* LocalNotifications.requestPermissions()
LocalNotifications.checkPermissions().then((data)=>{
//
}).catch((data)=>{
//
})
}) */
}
foregroundNotification() {
LocalNotifications.addListener('localNotificationReceived', (notification) => {
/* LocalNotifications.addListener('localNotificationReceived', (notification) => {
})
}) */
}
backgroundNotification() {
/* LocalNotifications.addListener('localNotificationActionPerformed', (action) => {
console.log('Local notification action performed (background):', action);
// Implemente a lógica para lidar com a ação da notificação em segundo plano
}); */
}
sendNotificationChat({title = 'User', icon = '', message = 'hello'}) {
LocalNotifications.schedule({
/* LocalNotifications.schedule({
notifications:[
{
title : title,
@@ -42,7 +49,7 @@ export class NativeNotificationService {
id : new Date().getTime()
}
]
});
}); */
}