Commit Graph

274 Commits

Author SHA1 Message Date
sim 7d8b142ef4 Always run RestartWorker even without registration
The only reason we had that check was in case of network
change without registrations. The check has moved to this
class
2024-10-29 14:40:41 +00:00
sim c851d69baa Use failed reasons 2024-10-28 16:26:29 +00:00
sim 5b5ce7575e Split onReceive
Introduce ConnectorTokenValidity
2024-10-28 14:36:57 +00:00
sim 28221ee172 Fix application package name following AND_3 2024-10-28 11:16:07 +00:00
sim 5dbeb07dde Add comments for FailureHandler functions 2024-10-28 11:13:37 +00:00
sim b3c28be0fc Avoid paralel run of RestartWorker
Make doWork synchronized
Do not add failures count from the worker
2024-10-28 11:12:10 +00:00
sim f17c932e9f Fix network callback
Correctly check if internet was lost before restarting
Set failure counter to 1 from the network callback
2024-10-28 11:07:56 +00:00
sim d290b790d6 Add comments for debug vars 2024-10-28 11:02:31 +00:00
sim 43605d28ec Get application package name following AND_3 2024-10-28 09:48:30 +00:00
sim 41f4fabb33 Raise app to foreground on new message 2024-10-28 09:32:03 +00:00
sim 5d6b3b887d Add Link Activity 2024-10-28 08:19:04 +00:00
Undercut0150 a9cb900b77 Updated the link to the notif channels example 2024-05-09 20:35:50 +00:00
Undercut0150 ba59e8227a Change add_channel_dialog_content to add new documentation 2024-05-09 20:35:50 +00:00
S1m 6170f630d1 1.9.0 2024-01-16 23:45:11 +01:00
S1m f4eaba00a5 Lint 2024-01-16 23:45:11 +01:00
S1m f328fcc13f Fix error wrongly shown during SSO connection 2024-01-16 23:27:34 +01:00
S1m 3e83f3d07d Add notification when server app is not installed
And fix showSingle notifications: the shown ref was shared
2024-01-16 23:06:42 +01:00
S1m 25d8cf397e Toast when nextcloud app is not found 2024-01-16 23:04:45 +01:00
S1m b787b0f9b8 Use Enum.entries instead of Enum.values() 2024-01-16 23:04:25 +01:00
S1m 04e76170e9 Add https:// in manual login's url 2024-01-16 20:48:21 +01:00
S1m d6c270c81c Resolve conflict with new Context attribute: deviceId
Rename our context.deviceId to context.npDeviceId
2024-01-16 20:37:15 +01:00
S1m 5a97c8b7e7 Bump dependencies, target SDK 34
Declare service as Special Use, see
https://developer.android.com/about/versions/14/changes/fgs-types-required#special-use
2024-01-16 20:30:21 +01:00
S1m cb96642fd9 Remove unnecessary slash 2024-01-16 20:07:01 +01:00
S1m bb49730c91 Use bigText for in-app notif from channel 2024-01-16 20:01:01 +01:00
S1m db43b1ffea Do not replace in-app notif from channel 2024-01-16 20:00:28 +01:00
S1m 8895a8e482 Show nb of registrations on foreground notif 2024-01-16 19:53:38 +01:00
S1m d2bb7d6df4 Do not start the connection without registration 2024-01-16 14:21:12 +01:00
S1m 8c0d23344c Request ignore battery opt instead of openning settings 2024-01-14 22:43:53 +01:00
MDW 25b08b7820 Fix some spelling 2023-12-04 22:14:38 +01:00
sim 9587c959bd 1.8.1 2023-09-05 21:51:31 +02:00
sim 006ecb894c Avoid concurrent (un)registration
With synchronized MutableLists
2023-09-05 21:50:17 +02:00
sim 9dacde74db 1.8.0 2023-08-31 22:46:35 +02:00
sim 9d317b68bd Reset hastInternet to its default value when unregistering callback
At logout, the callback is unregistered, and this var must be true to
try to login.
2023-08-31 22:43:30 +02:00
sim fe731eb352 Avoid varname shadowed 2023-08-31 22:43:03 +02:00
sim 17c402e8cd Avoid deprecated functions 2023-08-31 22:42:26 +02:00
sim 600dec2c69 Use non transitive R classes 2023-08-31 22:26:26 +02:00
sim 6d1285d448 Use new *Sdk names 2023-08-31 22:24:06 +02:00
sim 95270c0e44 Lint 2023-08-31 22:16:26 +02:00
sim 3e7900da61 Avoid false positive warning about server configuration
Use AtomicReference for the startingTimer and check
if the source is the current one
2023-08-31 22:16:26 +02:00
sim 93d42bfd19 Bump dependencies 2023-08-31 22:16:26 +02:00
sim 780370494c Fix notification shown attribute 2023-08-31 22:16:26 +02:00
sim 747beb7620 Restart only if the fail comes from current source 2023-08-31 22:16:26 +02:00
sim 5484ff6d59 Fix initial state for internet check 2023-08-31 22:16:26 +02:00
sim 3cb7d9d531 Do not run restartWorker without internet 2023-08-31 22:16:26 +02:00
sim 4cda3d9f8d Remove static wakelock 2023-08-31 22:16:26 +02:00
sim 2ba1d35c66 Use a global companion 2023-08-31 22:16:26 +02:00
sim ded36d2e6e Always use applicationContext for Api 2023-08-31 22:16:26 +02:00
sim d293129df5 Use AtomicRef for syncSource 2023-08-31 22:16:26 +02:00
sim a8abc9d9e5 Use AtomicRef for Db 2023-08-31 22:16:26 +02:00
sim 5a991e99cd Refactor notifications 2023-08-31 22:16:26 +02:00
Conny Duck 731a51e9c4 Simplify content_main layout 2023-08-31 22:16:26 +02:00
sim 43cdaf8cdb Toast when a new app is registered 2023-08-31 22:16:23 +02:00
sim 13153293a4 Move getApplicationName to Utils 2023-08-30 14:39:38 +02:00
sim 49828c9bf1 Always use applicationContext in receiver 2023-08-29 23:12:50 +02:00
sim c6d39fb073 Move WAKE_LOCK_TAG to const val 2023-08-29 23:10:13 +02:00
sim ee8f497644 Use non-nullable ApiResponse in Api 2023-08-29 23:05:41 +02:00
sim e2c98f0e81 1.7.1 2023-06-12 23:47:08 +02:00
sim 2057d77c31 Update dependencies 2023-06-12 23:33:51 +02:00
sim aeb39b4c65 Fix NullPointerException with optimization card 2023-06-12 23:26:23 +02:00
sim 1670b364d8 Merge branch 'connyduck/enable_minify' 2023-06-12 23:04:21 +02:00
Conny Duck 17f2e6e776 Add proguard rules 2023-06-12 23:04:00 +02:00
Conny Duck 4e6005d20c Enable code and resource shrinking for smaller app size 2023-06-12 23:03:45 +02:00
Conny Duck 37440947d1 Simplify StartActivity layout 2023-06-12 23:00:06 +02:00
sim 3de8ccf898 1.7.0 2023-06-05 23:32:23 +02:00
sim 0b66bfb57f Support notification on push 2023-06-05 22:43:08 +02:00
sim b294ffb665 Upgrade java version 2023-06-05 22:41:07 +02:00
sim 8ca5945030 Fix menu main 2023-05-31 23:17:50 +02:00
sim e1947c9cf5 Fix typo 2023-05-31 22:56:07 +02:00
sim 504b58ecec Delete multiple app in the same time
Show application names in main view
2023-05-31 22:56:07 +02:00
sim ac30bf8aa8 Do not check buffered response on boot 2023-05-31 22:56:07 +02:00
sim 0a7fe27ca1 Count fails since service start 2023-05-31 22:56:07 +02:00
sim adcf14e499 Always cancel eventSource 2023-05-31 22:56:07 +02:00
sim af866e3a14 Bump dependencies 2023-05-31 22:56:03 +02:00
sim dbaf315b4f Use Nextcloud SSO 0.7.0 2023-04-12 19:11:28 +02:00
sim ffe7878fc3 1.6.3 2023-04-11 18:38:29 +02:00
sim 59ffef6f05 Check buffered response once per service started 2023-04-11 18:38:16 +02:00
sim 120c44d203 1.6.2 2023-04-07 13:20:20 +02:00
sim f8e93077eb Increase timeout to test buffered responses 2023-04-07 13:18:58 +02:00
sim b21b0c51de Cancel startingTimer if exists 2023-04-07 13:18:28 +02:00
sim 389aa33fbb 1.6.1 2023-04-03 12:51:13 +02:00
sim 107d65cefe Show timeout notif warning after 5 fails 2023-04-03 12:50:18 +02:00
sim e5e566ab71 Start buffered response check onOpen 2023-04-03 12:49:34 +02:00
sim 8727c11837 1.6.0 2023-03-26 23:22:17 +02:00
sim 8f22ce72b1 Merge remote-tracking branch 'origin/dependabot/gradle/androidx.work-work-runtime-ktx-2.8.1' 2023-03-26 23:04:32 +02:00
sim cd25fdc3cb Improve buffered response detection 2023-03-26 22:55:28 +02:00
sim d1061df181 Fix notifications' id 2023-03-26 22:55:28 +02:00
sim bea744db18 Use static var to track SSE status 2023-03-26 22:55:28 +02:00
sim 881e442ac6 Add debug dialog 2023-03-26 22:55:27 +02:00
sim 09e79a7c3a Ask user to disable battery optimisation
on the main activity if needed
2023-03-26 18:29:14 +02:00
sim cc22abe17a Precise start error may be because of buffering 2023-03-26 18:29:14 +02:00
sim 6ed937d9b6 Warn when timeout proxy issue 2023-03-26 18:29:13 +02:00
sim 5bdad9ca4c Warn when a low keepalive is used 2023-03-24 09:00:43 +01:00
sim ef14f709f2 Clean NotificationUtils 2023-03-24 08:45:14 +01:00
dependabot[bot] 85483d3410
Bump androidx.work:work-runtime-ktx from 2.8.0 to 2.8.1
Bumps androidx.work:work-runtime-ktx from 2.8.0 to 2.8.1.

---
updated-dependencies:
- dependency-name: androidx.work:work-runtime-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 21:58:56 +00:00
sim bce4244cb0 Do not restart when there is no Internet 2023-03-23 11:58:16 +01:00
sim 1628a4e718 Fix internet access status 2023-03-22 21:31:17 +01:00
sim d4870c39ad Restart only if a connection has succeeded once 2023-03-22 21:20:45 +01:00
sim 254a776244 Avoid useless service restart
Restart service with networkCallback only when Internet
is available again.
2023-03-21 21:52:45 +01:00
sim ec7e27b3a3 Call then() even when api call fails 2023-03-19 18:03:33 +01:00
sim f29a969425 Ignore exception when logging out 2023-03-19 18:01:18 +01:00