This commit is contained in:
Peter Maquiran
2022-01-28 17:33:26 +01:00
parent a7febddb34
commit 151e1ea8ad
5 changed files with 25 additions and 8 deletions
@@ -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()
}
]
});