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

APNS category broken in 3.2.0 #757

Open
aaronn opened this issue Jan 17, 2025 · 2 comments
Open

APNS category broken in 3.2.0 #757

aaronn opened this issue Jan 17, 2025 · 2 comments

Comments

@aaronn
Copy link

aaronn commented Jan 17, 2025

As part of django-push-notifications 3.2.0 with apns-async, send_message no longer seems to expect category and will throw the following error:

apns_send_bulk_message() got an unexpected keyword argument 'category'

Anyone else running into this or have any ideas for a workaround?

@clarin-ebtio800090
Copy link

Hello, we tried to solve the issue.

This is what we did:

Update the apns_send_message function to accept and use the 'category' parameter, passing it to the notification request. This fixes the issue where the 'category' argument was unexpectedly rejected.

You can review changes in this commit: clarin-ebtio800090@80bc658.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

@aaronn
Copy link
Author

aaronn commented Jan 18, 2025

Potential fix here: #758

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

No branches or pull requests

2 participants