Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Suppport for mutable_content in aioapns #745

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HashimJVZ
Copy link

This PR introduces support for the mutable_content property in the aioapns library, which was previously available only in apns2. The mutable_content property allows notifications to be modified by a Notification Service Extension before being delivered to the user.

This is related to #320 and #350.
Earlier support was available in the apns.py file, now added to apns_async.py.

mutable_content parameter is added to the following methods:

  • apns_send_message
  • apns_send_bulk_message
    Both use a common method _create_notification_request_from_args which will take aps_kwargs.

It will be then added to the NotificationRequest as

"aps": {
	"alert": alert,
	"badge": badge,
	"sound": sound,
	"thread-id": thread_id,
	**aps_kwargs,
},

Please correct me if I made any misunderstanding. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant