push notif: Set GCM priority high for real notifications.

This is the payoff of this branch!  Fixes zulip/zulip-mobile#3185.
This commit is contained in:
Greg Price
2019-02-07 17:16:42 -08:00
committed by Tim Abbott
parent 699bf262ca
commit ffabebd7f3
2 changed files with 4 additions and 4 deletions

View File

@@ -667,7 +667,7 @@ def handle_push_notification(user_profile_id: int, missed_message: Dict[str, Any
apns_payload = get_apns_payload(user_profile, message)
gcm_payload = get_gcm_payload(user_profile, message)
gcm_options = {} # type: Dict[str, Any]
gcm_options = {'priority': 'high'} # type: Dict[str, Any]
logger.info("Sending push notifications to mobile clients for user %s" % (user_profile_id,))
if uses_notification_bouncer():