Notification with Service Workers now is working!
When a Notification arrives, it save into the IndexDb, then in Vue.js call a polling to check in the db if there is a different record count. If is different then call a get to update the notification.
This commit is contained in:
@@ -92,7 +92,7 @@ export const Api = {
|
||||
idapp: process.env.APP_ID,
|
||||
}
|
||||
|
||||
console.log('INIZIO - SendReq', url)
|
||||
// console.log('INIZIO - SendReq', url)
|
||||
// console.log('mydata', mydata)
|
||||
|
||||
const userStore = useUserStore()
|
||||
@@ -145,7 +145,7 @@ export const Api = {
|
||||
},
|
||||
|
||||
async syncAlternative(mystrparam: string) {
|
||||
// console.log('[ALTERNATIVE Background syncing', mystrparam)
|
||||
console.log('[ALTERNATIVE Background syncing', mystrparam)
|
||||
|
||||
const multiparams = mystrparam.split('|')
|
||||
if (multiparams) {
|
||||
|
||||
Reference in New Issue
Block a user