From e1e4e00ab7bb69e20b12f75427d72ed91af9e91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eudes=20In=C3=A1cio?= Date: Mon, 12 Apr 2021 09:57:51 +0100 Subject: [PATCH] Bug fix notification route --- src/app/home/home.page.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index a96587856..8947bc9b1 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -107,7 +107,7 @@ export class HomePage implements OnInit { this.fcm.onNotification().subscribe(data => { this.viewEventDetail(data.IdObject) - if (data.click_action) { + if (data.wasTapped) { console.log("Received in background: ", data); if (data.Service === "agenda") { @@ -136,7 +136,6 @@ export class HomePage implements OnInit { console.log(data.Service) console.log(data.Object) console.log(data.IdObject) - //this.openApproveModal(data.IdObject); }; });