Class FCMSender
- Class name: FCMSender
- Namespace: LaravelFCM\Sender
- Parent class: LaravelFCM\Sender\BaseSender
const MAX_TOKEN_PER_REQUEST = 1000
protected \Illuminate\Foundation\Application $client
Guzzle Client
- Visibility: protected
protected array $config
configuration
- Visibility: protected
protected mixed $url
url
- Visibility: protected
\LaravelFCM\Response\DownstreamResponse|null LaravelFCM\Sender\FCMSender::sendTo(String|array $to, \LaravelFCM\Message\Options|null $options, \LaravelFCM\Message\PayloadNotification|null $notification, \LaravelFCM\Message\PayloadData|null $data)
send a downstream message to
- a unique device with is registration Token
- or to multiples devices with an array of registrationIds
- Visibility: public
- $to String|array
- $options LaravelFCM\Message\Options|null
- $notification LaravelFCM\Message\PayloadNotification|null
- $data LaravelFCM\Message\PayloadData|null
\LaravelFCM\Response\GroupResponse LaravelFCM\Sender\FCMSender::sendToGroup($notificationKey, \LaravelFCM\Message\Options|null $options, \LaravelFCM\Message\PayloadNotification|null $notification, \LaravelFCM\Message\PayloadData|null $data)
Send a message to a group of devices identified with them notification key
- Visibility: public
- $notificationKey mixed
- $options LaravelFCM\Message\Options|null
- $notification LaravelFCM\Message\PayloadNotification|null
- $data LaravelFCM\Message\PayloadData|null
\LaravelFCM\Response\TopicResponse LaravelFCM\Sender\FCMSender::sendToTopic(\LaravelFCM\Message\Topics $topics, \LaravelFCM\Message\Options|null $options, \LaravelFCM\Message\PayloadNotification|null $notification, \LaravelFCM\Message\PayloadData|null $data)
Send message devices registered at a or more topics
- Visibility: public
- $topics LaravelFCM\Message\Topics
- $options LaravelFCM\Message\Options|null
- $notification LaravelFCM\Message\PayloadNotification|null
- $data LaravelFCM\Message\PayloadData|null
string LaravelFCM\Sender\BaseSender::getUrl()
get the url
- Visibility: protected
- This method is abstract.
- This method is defined by LaravelFCM\Sender\BaseSender
mixed LaravelFCM\Sender\BaseSender::__construct()
BaseSender constructor.
- Visibility: public
- This method is defined by LaravelFCM\Sender\BaseSender