push_notifs: Set APNs topic individually on each notification.

This makes it possible to send notifications to more than one app ID
from the same server: for example, the main Zulip mobile app and the
new Flutter-based app, which has a separate app ID for use through its
beta period so that it can be installed alongside the existing app.
This commit is contained in:
Greg Price
2023-11-06 11:25:28 -08:00
committed by Tim Abbott
parent 40e5243c35
commit 528a76a419
4 changed files with 35 additions and 12 deletions

View File

@@ -405,8 +405,8 @@ APNS_TOKEN_KEY_FILE: Optional[str] = None
APNS_TOKEN_KEY_ID = get_secret("apns_token_key_id", development_only=True)
APNS_TEAM_ID = get_secret("apns_team_id", development_only=True)
APNS_SANDBOX = True
APNS_TOPIC = "org.zulip.Zulip"
# ZULIP_IOS_APP_ID is obsolete
# APNS_TOPIC is obsolete. Clients now pass the APNs topic to use.
# ZULIP_IOS_APP_ID is obsolete. Clients now pass the iOS app ID to use for APNs.
# Limits related to the size of file uploads; last few in MB.
DATA_UPLOAD_MAX_MEMORY_SIZE = 25 * 1024 * 1024