81b15e72f3
When fetching: - Maintain a marker with the position of the newest fetched notification - Use the marker to determine which notifications to fetch - Fetch notifications with min_id to ensure that none are lost - Update the marker as necessary - Perform a one-time immediate fetch of notifications on startup When creating notifications: - Identify each notification with tag=${MastodonNotificationId}, id=${account.id} - Remove activeNotifications field, it's no longer necessary - Use the tag/id tuple to reliably identify existing notifications and avoid creating duplicates - Cancelling notifications for an account must iterate over all the notifications, and individually remove the notifications that exist for that account. - Limit notifications to a maximum of 40 (excluding summary notifications) - Remove notifications (oldest first) to get under this limit - Rate limit notification creation to 1 per second, so the OS won't drop them Adjust the summary notification: - Ensure the summary notification and the child notifications have the same group key - Dismiss the summary notification if there is only one child notification NotificationClearBroadcastReceiver is no longer needed, so remove it, and the need for deletePendingIntent. Fixes #3625, #3539 |
||
---|---|---|
.. | ||
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 | ||
28.json | ||
29.json | ||
30.json | ||
31.json | ||
32.json | ||
33.json | ||
34.json | ||
35.json | ||
36.json | ||
37.json | ||
38.json | ||
39.json | ||
40.json | ||
41.json | ||
42.json | ||
43.json | ||
44.json | ||
45.json | ||
46.json | ||
47.json | ||
48.json | ||
49.json | ||
50.json |