11 Apr 2024 |
Voxel | In reply to @arcshark:matrix.org Did you change the connection protocol from JSON over HTTP to WebSocket? Yes I did. | 18:51:33 |
Voxel | Did not fixed the problem :( | 18:51:46 |
Voxel | In reply to @sim_g:matrix.org Voxel: try UP-Example Alr | 18:51:55 |
12 Apr 2024 |
| @0xcatpkg:matrix.org joined the room. | 04:49:57 |
| @0xcatpkg:matrix.org changed their profile picture. | 06:43:52 |
| @0xcatpkg:matrix.org changed their profile picture. | 06:44:30 |
| @immmmlkk:matrix.org joined the room. | 09:16:29 |
| @immmmlkk:matrix.org left the room. | 09:16:36 |
Voxel | In reply to @sim_g:matrix.org Voxel: try UP-Example It says there wouldn't be a distributor, but other apps can see and subscribe to it | 10:02:47 |
| Snuupy joined the room. | 11:34:30 |
| @0xcatpkg:matrix.org left the room. | 17:08:16 |
| Dyo ⚡️ left the room. | 20:54:30 |
14 Apr 2024 |
| Scott joined the room. | 09:45:25 |
| Jun changed their profile picture. | 19:35:30 |
15 Apr 2024 |
| Jonas Leder joined the room. | 17:00:27 |
16 Apr 2024 |
| @otime:matrix.org joined the room. | 08:24:24 |
| @otime:matrix.org left the room. | 16:25:36 |
| nakkivene joined the room. | 17:49:14 |
| Setis left the room. | 17:51:56 |
| MassiveBox joined the room. | 18:28:17 |
17 Apr 2024 |
| k18ldp joined the room. | 13:33:16 |
18 Apr 2024 |
| Marco Peuschel joined the room. | 16:11:23 |
| kgugeler joined the room. | 17:24:37 |
kgugeler | Hello! New to android development, trying to understand how notifications work, stumbled across UnifiedPush
As I understand it android OS makes some exceptions for FCM messaging which obviously UP avoids, how does it run a background task without getting killed, and still manage to deliver notifications in a timely manner? | 17:25:39 |
kgugeler | Ah - it polls unless you change it to be a foreground service ig | 17:51:39 |
kgugeler | makes sense | 17:51:42 |
spaetz | It depends on how the distributor implements this, e.g. ntfy or conversations are two solutions right now. But yeah, the answer will likely involve foreground services, I guessm | 19:36:45 |
kgugeler | true - I got a bit mixed up here, should've asked the ntfy folks | 19:48:46 |
kgugeler | thanks for confirming though | 19:48:49 |
19 Apr 2024 |
S1m | In reply to @kgugeler:matrix.org Hello! New to android development, trying to understand how notifications work, stumbled across UnifiedPush
As I understand it android OS makes some exceptions for FCM messaging which obviously UP avoids, how does it run a background task without getting killed, and still manage to deliver notifications in a timely manner? There is indeed an exception FCM can use: the targeted application is allowed to start a foreground service from the background following an urgent FCM message (if the app has not been deprioritized by the OS) https://developer.android.com/develop/background-work/services/foreground-services. All application doesn't need a fg service to sync with its server, and for the apps that need it, then setting it with unrestricted battery management allows fg services to be started from the bg | 07:23:11 |