Closed ptmkenny closed 3 months ago
$message
is an immutable object and returns a new instance of itself; the original message remains unchanged
$message = $message->withApnsConfig($badge_apns_config);
should work.
Thank you so much! That did the trick.
Describe the bug
I'm trying to set the badge count on iOS using the code example shown in the documentation for Notification Sounds. (code shown below)
The problem is that using
->withApnsConfg()
is not actually changing the payload; when I check the value of$messages
in XDebug, the payload isn't modified.Installed packages
Error message/Stack trace
Additional information
No response