Skip to content

Latest commit

 

History

History
164 lines (65 loc) · 2.1 KB

LaravelFCM-Sender-FCMGroup.md

File metadata and controls

164 lines (65 loc) · 2.1 KB

LaravelFCM\Sender\FCMGroup

Class FCMGroup

Constants

CREATE

const CREATE = "create"

ADD

const ADD = "add"

REMOVE

const REMOVE = "remove"

Properties

$client

protected \Illuminate\Foundation\Application $client

Guzzle Client

  • Visibility: protected

$config

protected array $config

configuration

  • Visibility: protected

$url

protected mixed $url

url

  • Visibility: protected

Methods

createGroup

null LaravelFCM\Sender\FCMGroup::createGroup($notificationKeyName, array $registrationIds)

Create a group

  • Visibility: public

Arguments

  • $notificationKeyName mixed
  • $registrationIds array

addToGroup

null LaravelFCM\Sender\FCMGroup::addToGroup($notificationKeyName, $notificationKey, array $registrationIds)

add registrationId to a existing group

  • Visibility: public

Arguments

  • $notificationKeyName mixed
  • $notificationKey mixed
  • $registrationIds array - <p>registrationIds to add</p>

removeFromGroup

null LaravelFCM\Sender\FCMGroup::removeFromGroup($notificationKeyName, $notificationKey, array $registeredIds)

remove registrationId to a existing group

Note: if you remove all registrationIds the group is automatically deleted

  • Visibility: public

Arguments

  • $notificationKeyName mixed
  • $notificationKey mixed
  • $registeredIds array - <p>registrationIds to remove</p>

getUrl

string LaravelFCM\Sender\BaseSender::getUrl()

get the url

__construct

mixed LaravelFCM\Sender\BaseSender::__construct()

BaseSender constructor.