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:
@@ -77,7 +77,7 @@ export interface IMessage {
|
||||
read?: boolean
|
||||
deleted?: boolean
|
||||
status?: StatusMessage
|
||||
options?: number
|
||||
typesend?: number
|
||||
}
|
||||
|
||||
export interface INotif {
|
||||
@@ -120,4 +120,5 @@ export interface INotifState {
|
||||
last_notifs: INotif[]
|
||||
show_all: boolean
|
||||
updateNotification: boolean
|
||||
countNotif: number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user