Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polling notification #396

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Polling notification #396

wants to merge 23 commits into from

Conversation

vince8x
Copy link
Collaborator

@vince8x vince8x commented May 2, 2021

This is PR for polling new messages from the server periodically in the background and notify locally on the device
The interval for android device is 3 minutes and for ios is 15 minutes, but for the ios we cannot control when the polling run (it all depends on the device, maybe a day)

Some notes when implementing background polling:

  • axios does not work on the background, need to use native http
  • leveldb does not work on the background, need to save background new messages in the vuex store independently from the leveldb and save lastServerTime in capacitor Storage

@vince8x vince8x linked an issue May 2, 2021 that may be closed by this pull request
@vince8x vince8x requested a review from schancel May 2, 2021 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pull notifications - Android
2 participants