Skip to content

Commit

Permalink
fix: Add Tokens in ActivityModel
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrouh committed Aug 30, 2024
1 parent efe95f6 commit 4693e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Traits/ActivityModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public function sendNotification($activity)
]),
];

$tokens = $this->activityFcmTokens();

if (count($tokens) > 0) {
foreach ($tokens as $token) {
$message = CloudMessage::withTarget('token', $token)->withNotification($notification)->withData($data);
Expand Down

0 comments on commit 4693e47

Please sign in to comment.