Commit ecfc125
committed
Pass custom APNs sounds through for FCM notifications
apns_config only ever set aps['sound'] when the notification's sound
attribute was exactly 'default', so any custom sound value configured
by the user was silently omitted from the APNs payload sent via FCM.
Pass the sound through when set, and keep omitting the key entirely
when no sound is configured (so notifications stay silent, matching
the existing behavior of android_notification and the plain APNs
client).
Fixes #7151 parent a5ea408 commit ecfc125
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
| |||
0 commit comments