Skip to content

Commit 10b558d

Browse files
committed
Enh: Add height priority for mobile app push notifications
1 parent c5abb44 commit 10b558d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changelog
55
----------------------
66
- Fix #75: Warning for "FCM Detection - App is using Proxy Firebase Service"
77
- Fix #78: Don't show opener if logout triggered by mobile app
8+
- Enh: Add height priority for mobile app push notifications
89

910
2.1.8 (March 21, 2025)
1011
----------------------

driver/Fcm.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public function processCloudMessage(array $tokens, string $title, string $body,
3535
$message = CloudMessage::new()
3636
->withNotification(Notification::create($title, $body, $imageUrl))
3737
->withWebPushConfig(['fcm_options' => ['link' => $url]])
38-
->withData(['url' => $url, 'notification_count' => $notificationCount]);
38+
->withData(['url' => $url, 'notification_count' => $notificationCount])
39+
->withHighestPossiblePriority();
3940

4041
try {
4142
$report = $this->messaging->sendMulticast($message, $tokens);

0 commit comments

Comments
 (0)