mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix
This commit is contained in:
@@ -17,6 +17,12 @@ export class NativeNotificationService {
|
||||
|
||||
LocalNotifications.requestPermissions()
|
||||
|
||||
LocalNotifications.checkPermissions().then((data)=>{
|
||||
console.log('success', data)
|
||||
}).catch((data)=>{
|
||||
console.log('error', data)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
sendNotificationChat({title = 'User', icon = '', message = 'hello'}) {
|
||||
@@ -24,9 +30,9 @@ export class NativeNotificationService {
|
||||
LocalNotifications.schedule({
|
||||
notifications:[
|
||||
{
|
||||
title : 'tile',
|
||||
body : 'df',
|
||||
id : 55
|
||||
title : title,
|
||||
body : message,
|
||||
id : new Date().getTime()
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user