mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Improve tinymce autosave and notification web click solved
This commit is contained in:
@@ -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()
|
||||
}
|
||||
]
|
||||
});
|
||||
}); */
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user