dreipol / django-scarface

Send push notifications to mobile devices using Amazon SNS
MIT License
43 stars 21 forks source link

Facing issues with sending rich notifications for ios #23

Closed uday12kumar closed 6 years ago

uday12kumar commented 6 years ago

I have been trying to send rich notifications to ios, I have the extra payload which we have to send to apns to receive rich notifications. But the ios device unable to detect whether the notifications is normal or rich notification.

Am I building the PushMessage correctly if not do let me know what to change thanks.

return PushMessage(
        context=json.dumps(data),
        context_id='none',
        has_new_content=True,
        message=alert,
        sound="default",
        badge_count=1,
        extra_payload={'mutable-content': True},
    )
uday12kumar commented 6 years ago

@J0hn5mith ^^

melbic commented 6 years ago

@uday12kumar Did you find a solution to your problem?

uday12kumar commented 6 years ago

using scarface no. I am using boto for now

melbic commented 6 years ago

Ok. I will close this issue then. If you would like to implement it with Scarface, just reopen it and paste the dictionary from the device and what about it is wrong.