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

fix: use mutable content and content available when set. #805

Conversation

hchienjo
Copy link
Contributor

@hchienjo hchienjo commented Aug 14, 2024

This PR uses the content available and mutable content fields when set. In the older version e.g 1.4.0 and in the legacy FCM API the content available was set here and used here in the request. It would be good for when these fields are set they can be propagated to Firebase Cloud Messaging under the APNS Config section.

The 2 fields influence how Apple Push Notification system handles the notifications on the end user device.

Content available is for background notifications hence the notification shouldn't have an alert or sound according to this reference.

Content available is for background notifications hence the notification
shouldn't have an alert or sound.
Ref:
https://developer.apple.com/documentation/usernotifications/generating-a-remote-notification
@hchienjo
Copy link
Contributor Author

@appleboy another on related to IOS push notifications on Firebase.

@hchienjo hchienjo force-pushed the fix/use-content-available-and-mutable-content-params branch from 3fe4849 to ba99369 Compare September 9, 2024 09:03
@hchienjo hchienjo force-pushed the fix/use-content-available-and-mutable-content-params branch from ba99369 to ef7ea80 Compare September 9, 2024 09:05
@appleboy
Copy link
Owner

I will take it.

@appleboy appleboy merged commit 3c3a5d3 into appleboy:master Sep 12, 2024
3 of 4 checks passed
@appleboy
Copy link
Owner

@hchienjo Thanks

@hchienjo
Copy link
Contributor Author

Thanks! Is there a plan to tag a new version?

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.

2 participants