Merge pull request #6182 from networkException/notification-documentation-fixes
Docs: Fix various formatting and spelling issues in notifications.md
This commit is contained in:
commit
828e13f9be
|
@ -11,7 +11,7 @@ This document aims to describe how Element android displays notifications to the
|
||||||
* [Background processing limitations](#background-processing-limitations)
|
* [Background processing limitations](#background-processing-limitations)
|
||||||
2. [Element Notification implementations](#element-notification-implementations)
|
2. [Element Notification implementations](#element-notification-implementations)
|
||||||
* [Requirements](#requirements)
|
* [Requirements](#requirements)
|
||||||
* [Foreground sync mode (Gplay & F-Droid)](#foreground-sync-mode-gplay-f-droid)
|
* [Foreground sync mode (Gplay & F-Droid)](#foreground-sync-mode-gplay--f-droid)
|
||||||
* [Push (FCM) received in background](#push-fcm-received-in-background)
|
* [Push (FCM) received in background](#push-fcm-received-in-background)
|
||||||
* [FCM Fallback mode](#fcm-fallback-mode)
|
* [FCM Fallback mode](#fcm-fallback-mode)
|
||||||
* [F-Droid background Mode](#f-droid-background-mode)
|
* [F-Droid background Mode](#f-droid-background-mode)
|
||||||
|
@ -67,14 +67,14 @@ FCM will only work on android devices that have Google plays services installed
|
||||||
|
|
||||||
De-Googlified devices need to rely on something else in order to stay up to date with a server.
|
De-Googlified devices need to rely on something else in order to stay up to date with a server.
|
||||||
There some cases when devices with google services cannot use FCM (network infrastructure limitations -firewalls-,
|
There some cases when devices with google services cannot use FCM (network infrastructure limitations -firewalls-,
|
||||||
privacy and or independency requirement, source code licence)
|
privacy and or independence requirement, source code licence)
|
||||||
|
|
||||||
## Push VS Notification
|
## Push VS Notification
|
||||||
|
|
||||||
This need some disambiguation, because it is the source of common confusion:
|
This need some disambiguation, because it is the source of common confusion:
|
||||||
|
|
||||||
|
|
||||||
*The fact that you see a notification on your screen does not mean that you have successfully configured your PUSH plateform.*
|
*The fact that you see a notification on your screen does not mean that you have successfully configured your PUSH platform.*
|
||||||
|
|
||||||
Technically there is a difference between a push and a notification. A notification is what you see on screen and/or in the notification Menu/Drawer (in the top bar of the phone).
|
Technically there is a difference between a push and a notification. A notification is what you see on screen and/or in the notification Menu/Drawer (in the top bar of the phone).
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ As this mode does not need to live beyond the scope of the application, and as p
|
||||||
|
|
||||||
This mode is turned on when the app enters foreground, and off when enters background.
|
This mode is turned on when the app enters foreground, and off when enters background.
|
||||||
|
|
||||||
In background, and depending on wether push is available or not, Element will use different methods to perform the syncs (Workers / Alarms / Service)
|
In background, and depending on whether push is available or not, Element will use different methods to perform the syncs (Workers / Alarms / Service)
|
||||||
|
|
||||||
## Push (FCM) received in background
|
## Push (FCM) received in background
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ Element implements several strategies in these cases (TODO document)
|
||||||
## FCM Fallback mode
|
## FCM Fallback mode
|
||||||
|
|
||||||
It is possible that Element is not able to get a FCM push token.
|
It is possible that Element is not able to get a FCM push token.
|
||||||
Common errors (amoung several others) that can cause that:
|
Common errors (among several others) that can cause that:
|
||||||
* Google Play Services is outdated
|
* Google Play Services is outdated
|
||||||
* Google Play Service fails in someways with FCM servers (infamous `SERVICE_NOT_AVAILABLE`)
|
* Google Play Service fails in someways with FCM servers (infamous `SERVICE_NOT_AVAILABLE`)
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ Only solution left is to use `AlarmManager`, that offers new API to allow launch
|
||||||
|
|
||||||
Notice that these alarms, due to their potential impact on battery life, can still be restricted by the system. Documentation says that they will not be triggered more than every minutes under normal system operation, and when in low power mode about every 15 mn.
|
Notice that these alarms, due to their potential impact on battery life, can still be restricted by the system. Documentation says that they will not be triggered more than every minutes under normal system operation, and when in low power mode about every 15 mn.
|
||||||
|
|
||||||
These restrictions can be relaxed by requirering the app to be white listed from battery optimization.
|
These restrictions can be relaxed by requiring the app to be white listed from battery optimization.
|
||||||
|
|
||||||
F-Droid version will schedule alarms that will then trigger a Broadcast Receiver, that in turn will launch a Service (in the classic android way), and the reschedule an alarm for next time.
|
F-Droid version will schedule alarms that will then trigger a Broadcast Receiver, that in turn will launch a Service (in the classic android way), and the reschedule an alarm for next time.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue