Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Improve mobile push notifications documentation.
Alya Abbottc5d95d455247
diff --git a/docs/production/mobile-push-notifications.md b/docs/production/mobile-push-notifications.mdindex 902f1ac6347..ffceaa02950 100644--- a/docs/production/mobile-push-notifications.md+++ b/docs/production/mobile-push-notifications.md@@ -5,44 +5,44 @@ receiving push notifications from Zulip servers to notify users whennew messages have arrived. This is an important feature for having agreat mobile app experience.-The security model for mobile push notifications does not allow-self-hosted Zulip servers to directly send mobile notifications to the-Zulip mobile apps. The Zulip mobile push notification service solves-this problem by forwarding mobile push notifications generated by your-server to the Zulip mobile apps.+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 Zulip+mobile apps. The Zulip Mobile Push Notification Service solves this problem by+forwarding mobile push notifications generated by your server to the Zulip+mobile apps.## 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 asfollows:-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. Ifthat is restricted by a proxy, you will need to [configure Zulip to use youroutgoing HTTP proxy](deployment.md#customizing-the-outgoing-http-proxy)first.1. Set `ZULIP_SERVICE_PUSH_NOTIFICATIONS = True` in your- `/etc/zulip/settings.py` file. The [comments in- settings.py][update-settings-docs] should contain this line,- commented out with a `# `. Delete the `# ` at the start of the line- to enable the setting.+ `/etc/zulip/settings.py` file. Simply uncomment the appropriate line [in+ settings.py][update-settings-docs] by deleting the initial `# `.1. Decide whether to share usage statistics with the Zulip team.- By default, Zulip installations using the Mobile Push Notification- Service submit additional usage statistics that help Zulip's- maintainers allocate resources towards supporting self-hosted- installations ([details](#uploading-usage-statistics)).-- You can disable submitting usage statistics now or at any time by- setting `ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS=False` in- `/etc/zulip/settings.py` (the template contains a convenient- commented line that you can uncomment).+ By default, Zulip installations using the Mobile Push Notification Service+ submit additional usage statistics that help Zulip's maintainers allocate+ resources towards supporting self-hosted installations+ ([details](#uploading-usage-statistics)). You can disable submitting usage+ statistics now or at any time by setting+ `ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS=False` in `/etc/zulip/settings.py`+ (uncomment the appropriate line).Note that all systems using the service upload [basicmetadata](#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```- 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+ This command will print the registration data it would send to the Mobile+ Push Notification Service, ask you to accept the terms of service, and ifyou accept, register your server. If you have trouble, [contact Zulipsupport](https://zulip.com/help/contact-support) with the output of thiscommand.@@ -223,7 +223,7 @@ support](https://zulip.com/help/contact-support).### Uploading basic metadataAll 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 uploadto the service basic metadata about the organizations hosted by theinstallation. (Older Zulip servers upload these metadata only if[uploading usage statistics](#uploading-usage-statistics) is enabled).@@ -257,12 +257,12 @@ installation:Our use of uploaded metadata is governed by the same [Terms ofService](https://zulip.com/policies/terms) and [PrivacyPolicy](https://zulip.com/policies/privacy) that covers the Mobile-Push Notifications Service itself.+Push Notification Service itself.### Uploading usage statisticsBy 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 candisable these uploads any time by setting`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 ofService](https://zulip.com/policies/terms) and [PrivacyPolicy](https://zulip.com/policies/privacy) that covers the Mobile-Push Notifications Service itself.+Push Notification Service itself.## 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 ratelimit of 1000 requests per minute. A Zulip server makes requests tothis API every time it sends a push notification, which is fairlyfrequent, but we believe it to be unlikely that a self-hosteddiff --git a/zproject/prod_settings_template.py b/zproject/prod_settings_template.pyindex ff08e1cf1d9..53bd333b871 100644--- a/zproject/prod_settings_template.py+++ b/zproject/prod_settings_template.py@@ -734,8 +734,8 @@ SOCIAL_AUTH_SAML_SUPPORT_CONTACT = {## How long outgoing webhook requests time out after# OUTGOING_WEBHOOK_TIMEOUT_SECONDS = 10-## Mobile push notifications require registering for the Zulip mobile-## push notification service and configuring your server to use the+## Mobile push notifications require registering for the Zulip Mobile+## Push Notification Service and configuring your server to use the## service here. For complete documentation, see:#### 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## By default, a Zulip server that has registered for Zulip services-## submits both basic metadata (required for billing/free plan-## eligiblity) as well as aggregate usage statistics. You can disable-## submitting usage statistics here.+## submits both basic metadata (required for billing and for determining+## free plan eligibility), as well as aggregate usage statistics. You+## can disable submitting usage statistics here.# ZULIP_SERVICE_SUBMIT_USAGE_STATISTICS = False## Whether to redact the content of push notifications. This is less