Commit Graph

15 Commits

Author SHA1 Message Date
Sternagfonkel
bd5b8b2c15 Refactor foreground notification text 2022-02-27 20:02:45 +00:00
Jannis Mattheis
150bfd0d57 Remove reconnect callback 2021-04-18 08:52:24 +00:00
Jannis Mattheis
28beabf258 Ignore multiple reconnects 2020-09-10 16:21:23 +00:00
Jannis Mattheis
31c96e2d15 Ignore events from already discarded websocket listeners 2020-09-10 16:21:23 +00:00
Jannis Mattheis
91dfd881e1 Fix not working scheduled reconnect
Documentation for postDelayed:
> Causes the Runnable r to be added to the message queue, to be run
> after the specified amount of time elapses.
> The runnable will be run on the thread to which this handler
> is attached.
> <b>The time-base is {@link android.os.SystemClock#uptimeMillis}.</b>
> Time spent in deep sleep will add an additional delay to execution.

TL;DR: if the CPU is in deep sleep, the postDelayed runnable won't be executed.
2020-06-13 11:37:14 +02:00
eternal-flame-AD
0c3ebb9bce Remove obsolete reconnect callbacks
removes obsolete reconnect callbacks scheduled before
network reconnects to prevent unwanted reconnection

also renamed WebSocketConnection.onFailure to onNetworkFailure to clear confusion
2019-01-06 19:21:40 +08:00
Jannis Mattheis
38681012a6 Wait for network when websocket connection failed 2019-01-04 22:47:10 +01:00
Jannis Mattheis
7da23cf94a Limit reconnect timeout 2018-12-22 18:02:14 +01:00
Jannis Mattheis
d4c6273214 Migrate gotify to new client 2018-11-17 12:06:06 +01:00
Galen Abell
78a7f1319e Fixed Picasso + refactors
- Removed comment

- Moved SSLSettings to its own top-level class

- Fixed picasso not setting SSL settings and failing to load images over
  self-signed connection
2018-11-10 10:40:48 -05:00
Galen Abell
8e2d90ef50 Merge request changes
- Moved certificate-related utilities to separate class

- Added settings method to return an entire SSLSettings object; refactored
  methods using separate parameters to take single SSLSettings parameter

- Advanced Settings section on login page now hides / shows along with
  other buttons to prevent it from showing up in front of the loading
  spinner

- Fixed star imports

- Refactored applySslSettings as per code from merge request

- Fixed formatting
2018-11-09 16:56:56 -05:00
Galen Abell
2d14ef1b6f Added SSL Validation Override and CA Selection
- Added fields to login page to a) disable ssl validation or b) select
  a custom Certificate Authority certificate to use with the server.

- Changed visibility of widgets on login page from INVISIBLE to GONE so
  they don't take up space while hidden (since this was causing weird
  spacing issues with the new fields).

- Added state to settings to store ssl validation choice or certificate
  data.

- Added fields to various HTTP methods to disable ssl validation or set
  valid certificate authority if either setting is enabled.
2018-11-07 17:28:25 -05:00
Jannis Mattheis
ee4d87113f Fix websocket connection on refresh
On refresh the service was restarted but the connection
wasn't closed, therefore each incoming message was handled n times.
2018-11-04 11:43:08 +01:00
Jannis Mattheis
8af40c3fd3 Fix sportless issues 2018-11-02 18:49:16 +01:00
Jannis Mattheis
ee1a841927 Add push service 2018-11-02 18:49:16 +01:00