chinwag-android/app/schemas/com.keylesspalace.tusky.db.AppDatabase
Peter Cai 9ec5d6e3b0
Push notifications support via UnifiedPush (#2303)
Fixes #793.

This is an implementation for push notifications based on UnifiedPush
for Tusky. No push gateway (other than UP itself) is needed, since
UnifiedPush is simple enough such that it can act as a catch-all
endpoint for WebPush messages. When a UnifiedPush distributor is present
on-device, we will by default register Tusky as a receiver; if no
UnifiedPush distributor is available, then pull notifications are used
as a fallback mechanism.

Because WebPush messages are encrypted, and Mastodon does not send the
keys and IV needed for decryption in the request body, for now the push
handler simply acts as a trigger for the pre-existing NotificationWorker
which is also used for pull notifications. Nevertheless, I have
implemented proper key generation and storage, just in case we would
like to implement full decryption support in the future when Mastodon
upgrades to the latest WebPush encryption scheme that includes all
information in the request body.

For users with existing accounts, push notifications will not be enabled
until all of the accounts have been re-logged in to grant the new push
OAuth scope. A small prompt will be shown (until dismissed) as a
Snackbar to explain to the user about this, and an option is added in
Account Preferences to facilitate re-login without deleting local drafts
and cache.
2022-05-17 19:32:09 +02:00
..
10.json
11.json
12.json
13.json
14.json
15.json
16.json
17.json
18.json
19.json
20.json
21.json
22.json
23.json
24.json
25.json
26.json
27.json migrate to paging 3 (#2182) 2021-06-17 18:54:56 +02:00
28.json Timeline paging (#2238) 2022-01-11 19:00:29 +01:00
29.json Instance configuration: the easy parts (#2341) 2022-03-01 19:43:36 +01:00
30.json Instance configuration: the easy parts (#2341) 2022-03-01 19:43:36 +01:00
31.json Fix Timeline not loading (#2398) 2022-03-28 18:39:16 +02:00
32.json Support new signup notifications (#2357) 2022-04-14 19:39:30 +02:00
33.json move Html parsing to ViewData (#2414) 2022-04-15 13:20:27 +02:00
34.json Add support for post edit notifications (#2431) 2022-04-19 11:10:13 +02:00
35.json add 35.json 2022-05-11 07:43:30 +02:00
36.json Push notifications support via UnifiedPush (#2303) 2022-05-17 19:32:09 +02:00