mirror of https://github.com/zulip/zulip.git
docs: Improve mobile push notifications documentation.
This commit is contained in:
parent
e833cd10be
commit
c5d95d4552
|
@ -5,44 +5,44 @@ receiving push notifications from Zulip servers to notify users when
|
||||||
new messages have arrived. This is an important feature for having a
|
new messages have arrived. This is an important feature for having a
|
||||||
great mobile app experience.
|
great mobile app experience.
|
||||||
|
|
||||||
The security model for mobile push notifications does not allow
|
Google's and Apple's security model for mobile push notifications does not allow
|
||||||
self-hosted Zulip servers to directly send mobile notifications to the
|
self-hosted Zulip servers to directly send mobile notifications to the Zulip
|
||||||
Zulip mobile apps. The Zulip mobile push notification service solves
|
mobile apps. The Zulip Mobile Push Notification Service solves this problem by
|
||||||
this problem by forwarding mobile push notifications generated by your
|
forwarding mobile push notifications generated by your server to the Zulip
|
||||||
server to the Zulip mobile apps.
|
mobile apps.
|
||||||
|
|
||||||
## Signing up
|
## Signing up
|
||||||
|
|
||||||
|
:::{important}
|
||||||
|
|
||||||
|
These instructions are for Zulip Server 9.0+. If you are running an older
|
||||||
|
version of Zulip ([check](https://zulip.com/help/view-zulip-version) if you are
|
||||||
|
unsure), see the [Zulip 8.x
|
||||||
|
documentation](https://zulip.readthedocs.io/en/8.4/production/mobile-push-notifications.html).
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
You can enable the mobile push notification service for your Zulip server as
|
You can enable the mobile push notification service for your Zulip server as
|
||||||
follows:
|
follows:
|
||||||
|
|
||||||
1. Check that your [server
|
|
||||||
version](https://zulip.com/help/view-zulip-version) is has Zulip
|
|
||||||
Server 9.0 or greater. For older versions, see the [Zulip 8.x
|
|
||||||
documentation](https://zulip.readthedocs.io/en/8.4/production/mobile-push-notifications.html).
|
|
||||||
|
|
||||||
1. Make sure your server has outgoing HTTPS access to the public Internet. If
|
1. Make sure your server has outgoing HTTPS access to the public Internet. If
|
||||||
that is restricted by a proxy, you will need to [configure Zulip to use your
|
that is restricted by a proxy, you will need to [configure Zulip to use your
|
||||||
outgoing HTTP proxy](deployment.md#customizing-the-outgoing-http-proxy)
|
outgoing HTTP proxy](deployment.md#customizing-the-outgoing-http-proxy)
|
||||||
first.
|
first.
|
||||||
|
|
||||||
1. Set `ZULIP_SERVICE_PUSH_NOTIFICATIONS = True` in your
|
1. Set `ZULIP_SERVICE_PUSH_NOTIFICATIONS = True` in your
|
||||||
`/etc/zulip/settings.py` file. The [comments in
|
`/etc/zulip/settings.py` file. Simply uncomment the appropriate line [in
|
||||||
settings.py][update-settings-docs] should contain this line,
|
settings.py][update-settings-docs] by deleting the initial `# `.
|
||||||
commented out with a `# `. Delete the `# ` at the start of the line
|
|
||||||
to enable the setting.
|
|
||||||
|
|
||||||
1. Decide whether to share usage statistics with the Zulip team.
|
1. Decide whether to share usage statistics with the Zulip team.
|
||||||
|
|
||||||
By default, Zulip installations using the Mobile Push Notification
|
By default, Zulip installations using the Mobile Push Notification Service
|
||||||
Service submit additional usage statistics that help Zulip's
|
submit additional usage statistics that help Zulip's maintainers allocate
|
||||||
maintainers allocate resources towards supporting self-hosted
|
resources towards supporting self-hosted installations
|
||||||
installations ([details](#uploading-usage-statistics)).
|
([details](#uploading-usage-statistics)). You can disable submitting usage
|
||||||
|
statistics now or at any time by setting
|
||||||
You can disable submitting usage statistics now or at any time by
|
`ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS=False` in `/etc/zulip/settings.py`
|
||||||
setting `ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS=False` in
|
(uncomment the appropriate line).
|
||||||
`/etc/zulip/settings.py` (the template contains a convenient
|
|
||||||
commented line that you can uncomment).
|
|
||||||
|
|
||||||
Note that all systems using the service upload [basic
|
Note that all systems using the service upload [basic
|
||||||
metadata](#uploading-basic-metadata) about the organizations hosted
|
metadata](#uploading-basic-metadata) about the organizations hosted
|
||||||
|
@ -66,8 +66,8 @@ follows:
|
||||||
docker exec -it -u zulip <container_name> /home/zulip/deployments/current/manage.py register_server
|
docker exec -it -u zulip <container_name> /home/zulip/deployments/current/manage.py register_server
|
||||||
```
|
```
|
||||||
|
|
||||||
This command will print the registration data it would send to the mobile
|
This command will print the registration data it would send to the Mobile
|
||||||
push notifications service, ask you to accept the terms of service, and if
|
Push Notification Service, ask you to accept the terms of service, and if
|
||||||
you accept, register your server. If you have trouble, [contact Zulip
|
you accept, register your server. If you have trouble, [contact Zulip
|
||||||
support](https://zulip.com/help/contact-support) with the output of this
|
support](https://zulip.com/help/contact-support) with the output of this
|
||||||
command.
|
command.
|
||||||
|
@ -223,7 +223,7 @@ support](https://zulip.com/help/contact-support).
|
||||||
### Uploading basic metadata
|
### Uploading basic metadata
|
||||||
|
|
||||||
All Zulip installations running Zulip 8.0 or greater that are
|
All Zulip installations running Zulip 8.0 or greater that are
|
||||||
registered for the Mobile Push Notifications Service regularly upload
|
registered for the Mobile Push Notification Service regularly upload
|
||||||
to the service basic metadata about the organizations hosted by the
|
to the service basic metadata about the organizations hosted by the
|
||||||
installation. (Older Zulip servers upload these metadata only if
|
installation. (Older Zulip servers upload these metadata only if
|
||||||
[uploading usage statistics](#uploading-usage-statistics) is enabled).
|
[uploading usage statistics](#uploading-usage-statistics) is enabled).
|
||||||
|
@ -257,12 +257,12 @@ installation:
|
||||||
Our use of uploaded metadata is governed by the same [Terms of
|
Our use of uploaded metadata is governed by the same [Terms of
|
||||||
Service](https://zulip.com/policies/terms) and [Privacy
|
Service](https://zulip.com/policies/terms) and [Privacy
|
||||||
Policy](https://zulip.com/policies/privacy) that covers the Mobile
|
Policy](https://zulip.com/policies/privacy) that covers the Mobile
|
||||||
Push Notifications Service itself.
|
Push Notification Service itself.
|
||||||
|
|
||||||
### Uploading usage statistics
|
### Uploading usage statistics
|
||||||
|
|
||||||
By default, Zulip installations that register for the Mobile Push
|
By default, Zulip installations that register for the Mobile Push
|
||||||
Notifications Service upload the following usage statistics. You can
|
Notification Service upload the following usage statistics. You can
|
||||||
disable these uploads any time by setting
|
disable these uploads any time by setting
|
||||||
`ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS=False` in `/etc/zulip/settings.py`.
|
`ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS=False` in `/etc/zulip/settings.py`.
|
||||||
|
|
||||||
|
@ -287,11 +287,11 @@ on a pre-8.0 Zulip server, you can run the analytics job manually via:
|
||||||
Our use of uploaded usage statistics is governed by the same [Terms of
|
Our use of uploaded usage statistics is governed by the same [Terms of
|
||||||
Service](https://zulip.com/policies/terms) and [Privacy
|
Service](https://zulip.com/policies/terms) and [Privacy
|
||||||
Policy](https://zulip.com/policies/privacy) that covers the Mobile
|
Policy](https://zulip.com/policies/privacy) that covers the Mobile
|
||||||
Push Notifications Service itself.
|
Push Notification Service itself.
|
||||||
|
|
||||||
## Rate limits
|
## Rate limits
|
||||||
|
|
||||||
The Mobile Push Notifications Service API has a very high default rate
|
The Mobile Push Notification Service API has a very high default rate
|
||||||
limit of 1000 requests per minute. A Zulip server makes requests to
|
limit of 1000 requests per minute. A Zulip server makes requests to
|
||||||
this API every time it sends a push notification, which is fairly
|
this API every time it sends a push notification, which is fairly
|
||||||
frequent, but we believe it to be unlikely that a self-hosted
|
frequent, but we believe it to be unlikely that a self-hosted
|
||||||
|
|
|
@ -734,8 +734,8 @@ SOCIAL_AUTH_SAML_SUPPORT_CONTACT = {
|
||||||
## How long outgoing webhook requests time out after
|
## How long outgoing webhook requests time out after
|
||||||
# OUTGOING_WEBHOOK_TIMEOUT_SECONDS = 10
|
# OUTGOING_WEBHOOK_TIMEOUT_SECONDS = 10
|
||||||
|
|
||||||
## Mobile push notifications require registering for the Zulip mobile
|
## Mobile push notifications require registering for the Zulip Mobile
|
||||||
## push notification service and configuring your server to use the
|
## Push Notification Service and configuring your server to use the
|
||||||
## service here. For complete documentation, see:
|
## service here. For complete documentation, see:
|
||||||
##
|
##
|
||||||
## https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html
|
## https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html
|
||||||
|
@ -743,9 +743,9 @@ SOCIAL_AUTH_SAML_SUPPORT_CONTACT = {
|
||||||
# ZULIP_SERVICE_PUSH_NOTIFICATIONS = True
|
# ZULIP_SERVICE_PUSH_NOTIFICATIONS = True
|
||||||
|
|
||||||
## By default, a Zulip server that has registered for Zulip services
|
## By default, a Zulip server that has registered for Zulip services
|
||||||
## submits both basic metadata (required for billing/free plan
|
## submits both basic metadata (required for billing and for determining
|
||||||
## eligiblity) as well as aggregate usage statistics. You can disable
|
## free plan eligibility), as well as aggregate usage statistics. You
|
||||||
## submitting usage statistics here.
|
## can disable submitting usage statistics here.
|
||||||
# ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS = False
|
# ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS = False
|
||||||
|
|
||||||
## Whether to redact the content of push notifications. This is less
|
## Whether to redact the content of push notifications. This is less
|
||||||
|
|
Loading…
Reference in New Issue