Notification are working

This commit is contained in:
Eudes Inácio
2022-12-26 14:47:51 +01:00
parent 6fd41096a1
commit 92dab2d580
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ export class NotificationsService {
onReciveForeground() {
PushNotifications.addListener('pushNotificationReceived',
(notification: PushNotificationSchema) => {
console.log(notification)
this.DataArray.push(notification)
this.storageService.store("Notifications", this.DataArray)
@@ -160,7 +160,7 @@ export class NotificationsService {
onReciveBackground() {
PushNotifications.addListener('pushNotificationActionPerformed',
(notification: ActionPerformed) => {
console.log(notification)
/* this.DataArray.push(notification.notification)
this.storageService.store("Notifications", this.DataArray)