4

I am using following package to send notifications to broswers.

https://github.com/kawankoding/laravel-fcm

The code to send Notifications,

fcm()
    ->to($recipients) // $recipients must an array
    ->notification([
        'title' => 'Test FCM',
        'body' => 'This is a test of FCM',
    ])
    ->send();

This is working fine for browser.

Question: can the $recipients array contain both types i,e, device tokens (Android & iOS) and browsers(FF & Chrome) Tokens ?

Dushyant Joshi
  • 3,672
  • 3
  • 28
  • 52

1 Answers1

0

No. You can send Notification/Data only to iOS/Android devices.

Rafik Farhad
  • 1,182
  • 2
  • 12
  • 21