joshua1988 / SolutionPortal

Transforming the legacy web site to PWA
2 stars 1 forks source link

fetchPushMessage() logic is needed to get fixed in Push Controller #7

Open joshua1988 opened 7 years ago

joshua1988 commented 7 years ago

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.

joshua1988 commented 7 years ago

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.