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:
@@ -231,7 +231,7 @@ export const costanti = {
|
||||
|
||||
MAX_PHASES: 5,
|
||||
|
||||
OtherTables: ['config', 'swmsg'],
|
||||
OtherTables: ['config', 'swmsg', 'notifications'],
|
||||
// export const MainTables = ['todos', 'projects']
|
||||
MainTables: [],
|
||||
allMethod: ['sync_post_', 'sync_patch_', 'delete_', 'hide_'],
|
||||
|
||||
Reference in New Issue
Block a user