Commit 274cdcb2 authored by Helperhaps's avatar Helperhaps

add new keys in audience

parent ae444497
...@@ -37,7 +37,7 @@ def notification(alert=None, ios=None, android=None, winphone=None): ...@@ -37,7 +37,7 @@ def notification(alert=None, ios=None, android=None, winphone=None):
def ios(alert=None, badge='+1', sound=None, content_available=False, def ios(alert=None, badge='+1', sound=None, content_available=False,
extras=None, sound_disable=False): mutable_content=False, category=None, extras=None, sound_disable=False):
"""iOS/APNS specific platform override payload. """iOS/APNS specific platform override payload.
:keyword alert: iOS format alert, as either a string or dictionary. :keyword alert: iOS format alert, as either a string or dictionary.
...@@ -72,6 +72,10 @@ def ios(alert=None, badge='+1', sound=None, content_available=False, ...@@ -72,6 +72,10 @@ def ios(alert=None, badge='+1', sound=None, content_available=False,
payload['sound'] = 'default' payload['sound'] = 'default'
if content_available: if content_available:
payload['content-available'] = 1 payload['content-available'] = 1
if mutable_content:
payload['mutable-content'] = 1
if category:
payload['category'] = category
if extras is not None: if extras is not None:
payload['extras'] = extras payload['extras'] = extras
return payload return payload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment