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

FCM - 2.0.0.RC3 add ability to set APNS #276

Open
grahac opened this issue Sep 24, 2024 · 1 comment
Open

FCM - 2.0.0.RC3 add ability to set APNS #276

grahac opened this issue Sep 24, 2024 · 1 comment

Comments

@grahac
Copy link

grahac commented Sep 24, 2024

Is your feature request related to a problem? Please describe.
FCM has a apns payload where you can directly set the iOS badge. Would like to be able to update badges remotely.

Describe the solution you'd like
Add set_apns method that sets the apns payload.

@grahac
Copy link
Author

grahac commented Sep 26, 2024

Instead of adding a setter let's just add a comment to the readme. Something like.

apns = %{
            "payload" => %{
              "aps" => %{"badge" => 12, "sound" => "default"}
            }

notification
|> Map.put(:apns, apns)

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

1 participant