PHP Class bryglen\apnsgcm\Gcm

Inheritance: extends bryglen\apnsgcm\AbstractApnsGcm
Mostrar archivo Open project: bryglen/yii2-apns-gcm

Public Properties

Property Type Description
$apiKey

Public Methods

Method Description
__call ( $method, $params )
getClient ( )
init ( )
send ( string $token, $text, array $payloadData = [], array $args = [] ) : null | PHP_GCM\Message send a push notification for android using GCM client
sendMulti ( string | array $tokens, $text, array $payloadData = [], array $args = [] ) : null | PHP_GCM\Message send a push notification for android using GCM client

Method Details

__call() public method

public __call ( $method, $params )

getClient() public method

public getClient ( )

init() public method

public init ( )

send() public method

Usage 1: $this->send( 'some-valid-token', 'some-message', [ 'custom_data_key_1'=>'custom_data_value_1', 'custom_data_key_2'=>'custom_data_value_2', ] );
public send ( string $token, $text, array $payloadData = [], array $args = [] ) : null | PHP_GCM\Message
$token string
$text
$payloadData array
$args array
return null | PHP_GCM\Message

sendMulti() public method

Usage 1: $this->sendMulti( 'some-valid-token', 'some-message', [ 'custom_data_key_1' => 'custom_data_value_1', 'custom_data_key_2' => 'custom_data_value_2', ] ); Usage 2: $this->sendMulti( ['valid-token-1','valid-token-2','valid-token-3'], 'some-message', [ 'custom_data_key_1'=>'custom_data_value_1', 'custom_data_key_2'=>'custom_data_value_2', ] );
public sendMulti ( string | array $tokens, $text, array $payloadData = [], array $args = [] ) : null | PHP_GCM\Message
$tokens string | array
$text
$payloadData array
$args array
return null | PHP_GCM\Message

Property Details

$apiKey public_oe property

public $apiKey