Closed jamesbhatta closed 10 months ago
I think you just have to use fcm
in place of the channel when routing.
Notification::route('fcm', 'FCM_TOKEN')
->notify(new \App\Notifications\TestNotification());
I'm not sure if there is a better convention for how to do this with non-first party notification channels, but seeing as we call routeNotificationFor('fcm')
it should be wired up to work for this.
Damm, so stupid of me. Thank you, its working absolutely fine. Would be so great to see this in docs.
I am trying to send notification to a specific device of user. In my case a user have multiple devices FCM tokens. I guess On-Demand Notification was what I need in this situation. But its not working with package. Did I missed something?
Triggering as:
I was able to make it work by making the following change in send method of
FcmChannel::class