coment functions

This commit is contained in:
Peter Maquiran
2023-09-19 10:22:30 +01:00
parent f51bd246fc
commit 4cea8358fc
@@ -88,6 +88,37 @@ export class NotificationsService {
}
}
onReciveForeground() {
if(this.platform.is('mobile')) {
if (!this.isPushNotificationsAvailable) {
return false
}
PushNotifications.addListener('pushNotificationReceived',
(notification: PushNotificationSchema) => {
this.active = true
console.log('NOtification Listener', notification)
// this.storenotification(notification)
}
);
} else {
this.afMessaging.messages.subscribe((notification) => {
// this.storenotification(notification)
// this.notificationReceived.emit();
// this.eventtrigger.publishSomeData({
// notification: "recive"
// })
// Handle the received message, e.g., show a notification
});
}
}
onReciveBackground() {
if(this.platform.is('mobile')) {