This commit is contained in:
Peter Maquiran
2021-08-31 09:00:33 +01:00
parent 23d73c6d5f
commit 6b61630abc
11 changed files with 157 additions and 58 deletions
+13 -2
View File
@@ -162,8 +162,19 @@ export class HomePage implements OnInit {
}
)
synchro.registerCallback('Notification', (notification)=> {
console.log('notification====== £=======£==========£======', notification)
synchro.registerCallback('Notification', (DataArray)=> {
this.storageService.get('Notifications').then((data)=>{
data.push(DataArray)
this.storageService.store("Notifications", data)
}).catch(()=>{
const a = []
a.push(DataArray)
this.storageService.store("Notifications",a)
})
}, 'any')
}