mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Notification stop duplication
This commit is contained in:
@@ -234,6 +234,7 @@ export class HomePage implements OnInit {
|
|||||||
|
|
||||||
logDeviceInfo = async () => {
|
logDeviceInfo = async () => {
|
||||||
const info = await Device.getInfo();
|
const info = await Device.getInfo();
|
||||||
|
/* console.log('DEVICE INFO ',info); */
|
||||||
}
|
}
|
||||||
|
|
||||||
updateList() {
|
updateList() {
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export class NotificationsService {
|
|||||||
PushNotifications.addListener('pushNotificationReceived',
|
PushNotifications.addListener('pushNotificationReceived',
|
||||||
(notification: PushNotificationSchema) => {
|
(notification: PushNotificationSchema) => {
|
||||||
this.active = true
|
this.active = true
|
||||||
|
console.log('NOtification Listener', notification)
|
||||||
this.storenotification(notification)
|
this.storenotification(notification)
|
||||||
this.eventtrigger.publishSomeData({
|
this.eventtrigger.publishSomeData({
|
||||||
notification: "recive"
|
notification: "recive"
|
||||||
@@ -148,7 +148,6 @@ export class NotificationsService {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.afMessaging.messages.subscribe((notification) => {
|
this.afMessaging.messages.subscribe((notification) => {
|
||||||
this.storenotification(notification)
|
|
||||||
this.storenotification(notification)
|
this.storenotification(notification)
|
||||||
this.notificationReceived.emit();
|
this.notificationReceived.emit();
|
||||||
this.eventtrigger.publishSomeData({
|
this.eventtrigger.publishSomeData({
|
||||||
@@ -160,7 +159,7 @@ export class NotificationsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
storenotification(notification) {
|
storenotification(notification) {
|
||||||
console.log(notification)
|
console.log('Store Notification ',notification)
|
||||||
this.storageService.get("Notifications").then((store) => {
|
this.storageService.get("Notifications").then((store) => {
|
||||||
|
|
||||||
store.push(notification)
|
store.push(notification)
|
||||||
@@ -180,7 +179,7 @@ export class NotificationsService {
|
|||||||
PushNotifications.addListener('pushNotificationActionPerformed',
|
PushNotifications.addListener('pushNotificationActionPerformed',
|
||||||
(notification: ActionPerformed) => {
|
(notification: ActionPerformed) => {
|
||||||
this.active = true
|
this.active = true
|
||||||
console.log(notification)
|
console.log('NOtification Listener Backgroud', notification)
|
||||||
/* this.DataArray.push(notification.notification)
|
/* this.DataArray.push(notification.notification)
|
||||||
|
|
||||||
this.storageService.store("Notifications", this.DataArray)
|
this.storageService.store("Notifications", this.DataArray)
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export let versionData = {
|
export let versionData = {
|
||||||
"shortSHA": "ba8fce1ec",
|
"shortSHA": "54a6fb5b6",
|
||||||
"SHA": "ba8fce1ec8e391c9ae1327a6da973ffc03561d36",
|
"SHA": "54a6fb5b6eb5d1afc53a6067dfd64519c3c3fa87",
|
||||||
"branch": "developer-catch-merge",
|
"branch": "developer-catch-merge",
|
||||||
"lastCommitAuthor": "'Peter Maquiran'",
|
"lastCommitAuthor": "'Peter Maquiran'",
|
||||||
"lastCommitTime": "'Mon Jul 24 10:23:03 2023 +0100'",
|
"lastCommitTime": "'Mon Jul 24 13:52:48 2023 +0100'",
|
||||||
"lastCommitMessage": "fix",
|
"lastCommitMessage": "change",
|
||||||
"lastCommitNumber": "5106",
|
"lastCommitNumber": "5107",
|
||||||
"change": "",
|
"change": "",
|
||||||
"changeStatus": "On branch developer-catch-merge\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.ts\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/shared/popover/deploma-options/deploma-options.page.scss\n\tmodified: src/app/shared/popover/deploma-options/deploma-options.page.ts",
|
"changeStatus": "On branch developer-catch-merge\nYour branch is behind 'origin/developer-catch-merge' by 3 commits, and can be fast-forwarded.\n (use \"git pull\" to update your local branch)\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/home/home.page.ts\n\tmodified: src/app/services/notifications.service.ts",
|
||||||
"changeAuthor": "peter.maquiran"
|
"changeAuthor": "eudes.inacio"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user