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

Periodically wake the WebSocket, when GCM is disabled #7666

Closed
wants to merge 1 commit into from

Conversation

dpapavas
Copy link

Use the WebSocketAlarm, to periodically wake the WebSocket and with
it, any threads that may be stuck in blocking wait, while the device
is sleeping.

Fixes #6644
// FREEBIE

Contributor checklist

  • Xiaomi Mi 4, Android 7.1.2 (LineageOS 14.1, w/o GCM support)
  • Motorola Moto G3, Android 7.1.2 (LineageOS 14.1, w/o GCM support)
  • My contribution is fully baked and ready to be merged as is
  • I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234 syntax

Description

This is a reimplementation of #7100. Please see signalapp/libsignal-service-java#51 for more details.

Use the WebSocketAlarm, to periodically wake the WebSocket and with
it, any threads that may be stuck in blocking wait, while the device
is sleeping.

Fixes signalapp#6644
// FREEBIE
@moxie0
Copy link
Contributor

moxie0 commented Apr 20, 2018

I left comments in the libsignal PR, this was not what I laid out that needs to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Messages can take hours to be received
2 participants