Commit Graph

11 Commits (e4b56d4e40bbd468ca01a8cbb29e0cddf0de8d6b)

Author SHA1 Message Date
Greyson Parrelli e4b56d4e40 Show foreground notification for jobs when network is restricted.
Occasionally a job may be run when the app is in a network-restricted
mode, like a form of doze. When this happens, jobs can timeout due to
lack of network access, causing a cascade of job delays. This is
particularly bad in the case of message retrieval.

To prevent this, if a job that normally requires network detects that no
network is available when running, then we start a foreground
notification.
7 years ago
Greyson Parrelli 87e6aa48bb Schedule jobs with WorkManager.
Should help solve most of our pressing targetSdk=26 migration issues.
7 years ago
Greyson Parrelli a498176043 Switch logs to use new Log class. 7 years ago
Greyson Parrelli 42f1baaf61 Imported JobManager as a source dependency.
We have to make some changes, and it's gotten to the point where
maintaining it as a separate library is more hassle than it's worth,
especially with Google releasing WorkManager as the preferred job
scheduling library.
7 years ago
Moxie Marlinspike cb9bc9659b Support for read receipts
// FREEBIE
8 years ago
Moxie Marlinspike a0e23612d4 We need to disable this until push notifications contain more info
This could be a sync message, delivery receipt, or some other
message that isn't user-visible. The push notification content
would need to indicate whether that's the case in order to be
able to accurately display a notification

// FREEBIE
8 years ago
Moxie Marlinspike 73410f64b5 Display a notification when unable retrieve messages for push
Fixes #6684
// FREEBIE
9 years ago
Moxie Marlinspike 7b589c4300 TextSecure is now SignalService
// FREEBIE
10 years ago
Moxie Marlinspike 26bcb590a7 Log retrieve exception.
// FREEBIE
11 years ago
Moxie Marlinspike efcdb7eb66 Add GroupId to PushNotificationReceivedJob
Pending message requests should probably be made sequentially.

// FREEBIE
11 years ago
Moxie Marlinspike 7ba75c3291 Use REST interface instead of WebSockets on GCM events.
Closes #2994

// FREEBIE
11 years ago