mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
best preformance of notifications
This commit is contained in:
@@ -180,6 +180,8 @@ export class NotificationsService {
|
||||
this.eventtrigger.publishSomeData({
|
||||
notification: "recive"
|
||||
})
|
||||
}).catch((error) => {
|
||||
console.log('save mobile notification erro', error)
|
||||
})
|
||||
|
||||
|
||||
@@ -188,6 +190,8 @@ export class NotificationsService {
|
||||
this.eventtrigger.publishSomeData({
|
||||
notification: "recive"
|
||||
})
|
||||
}).catch((error) => {
|
||||
console.log('save web notification erro', error)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -197,8 +201,15 @@ export class NotificationsService {
|
||||
|
||||
}).catch((error) => {
|
||||
if (!error) {
|
||||
this.storageService.store("Notifications", [notification])
|
||||
console.log('store not exist on notification service ', error)
|
||||
this.storageService.store("Notifications", [notification]).then(() => {
|
||||
this.eventtrigger.publishSomeData({
|
||||
notification: "recive"
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
console.log('store notification service error', error)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ export class NewGroupPage implements OnInit{
|
||||
|
||||
console.log(this.task)
|
||||
|
||||
this
|
||||
|
||||
if(this.task) {
|
||||
this.link = this.dataService.get("link");
|
||||
|
||||
Reference in New Issue
Block a user