fcm
fcm copied to clipboard
Firebase Cloud Messaging (FCM) notifications channel for Laravel
When kreait/firebase-php upgrade on version 6.4.0 there is an error: ``` A message can only have one of the following targets: condition, token, topic, unknown ```
Hello, I'm giving maintenance to a project but I get this error when I try to send fcm notifications: **Call to undefined function GuzzleHttp\\Psr7\\uri_for() on vendor\\kreait\\firebase-php\\src\\Firebase\\Messaging\\Http\\Request\\SendMessage.php line 20** The package...
FCM message will not be received if array shape is different from `array` (string keys and string values). For example, this code won’t work: ```php return FcmMessage::create() ->setData([ 'string_key1' =>...
I'm facing an error under Laravel Sail (Laravel 8, PHP 8) by running `composer require laravel-notification-channels/fcm:~2.0` Any help will be appreciated. ```./composer.json has been updated Running composer update laravel-notification-channels/fcm Loading...
# What's inside Passing anything through other than a string in SetData causes the push notification to not be received. ``` return FcmMessage::create() ->setData([ 'foo' => 'bar', '1' => 2,...
This PR Fixes #43 Send notification to topic or condition if token is not specified and topic or condition are specified. This can be used to send a notification to...
I installed everything as mentioned in document. I am getting this error. 
how to Subscribe token to topic add send notification large number of users I'am using for setTopic ``` public function toFcm($notifiable) { return FcmMessage::create() ->setData(['type' => $this->screen, 'user_id' => (string)$notifiable->id])...
I want to send push notification for 10k users together, and i am not sure if i need to handle the limitation of fcm push notification, should i chunk $notifiable...
If an error happens during a multicast send, the `catch` part does not handle any of the errors. This PR solves this by checking the multicast results and throws the...