After getting a list of unsentPushMessage(), the query updates all the push messages to sent status so that another browser can't get the unsent messages.
To just a temporary workaround, uncomment pushService.updateSentMessages();
Need to add logics to change the status from unsent to sent, after all the browsers get the push messages.
Consider the situation that receives all unreceived messages when users are offline.
The current version doesn't contain the logics to get all the unsent messages when users log in in a long time.
After getting a list of unsentPushMessage(), the query updates all the push messages to sent status so that another browser can't get the unsent messages.
To just a temporary workaround, uncomment pushService.updateSentMessages(); Need to add logics to change the status from unsent to sent, after all the browsers get the push messages.