mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
best preformance of notifications
This commit is contained in:
@@ -180,6 +180,8 @@ export class NotificationsService {
|
|||||||
this.eventtrigger.publishSomeData({
|
this.eventtrigger.publishSomeData({
|
||||||
notification: "recive"
|
notification: "recive"
|
||||||
})
|
})
|
||||||
|
}).catch((error) => {
|
||||||
|
console.log('save mobile notification erro', error)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@@ -188,6 +190,8 @@ export class NotificationsService {
|
|||||||
this.eventtrigger.publishSomeData({
|
this.eventtrigger.publishSomeData({
|
||||||
notification: "recive"
|
notification: "recive"
|
||||||
})
|
})
|
||||||
|
}).catch((error) => {
|
||||||
|
console.log('save web notification erro', error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,8 +201,15 @@ export class NotificationsService {
|
|||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
if (!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)
|
console.log(this.task)
|
||||||
|
|
||||||
this
|
|
||||||
|
|
||||||
if(this.task) {
|
if(this.task) {
|
||||||
this.link = this.dataService.get("link");
|
this.link = this.dataService.get("link");
|
||||||
|
|||||||
Reference in New Issue
Block a user