Documentation

MobilePush
in package

Class to facilitate in integration with mobile push notifications author: hl@cloudframework.io

Table of Contents

Properties

$apnConnection  : mixed
$error  : mixed
$errorMsg  : mixed
$lastGCMResult  : mixed
$apns  : mixed
$core  : mixed
$gcm  : mixed

Methods

__construct()  : mixed
_sendAPNSMessage()  : mixed
Send a message to the the APNS with $deviceToken destination Based on: http://www.tagwith.com/question_138013_ssl-connect-to-apns-server-in-local-environment-stream-socket-client-failed Also.. http://stackoverflow.com/questions/28995197/apns-php-stream-socket-client-failed-to-enable-crypto
closeAPNS()  : mixed
sendAPNSLocKey()  : mixed
sendAPNSMessage()  : bool
Send a message into iOS devices
sendGCMMessage()  : mixed
Android Messages
setAPNS()  : mixed
setGCM()  : mixed

Properties

$apnConnection

public mixed $apnConnection = \null

$lastGCMResult

public mixed $lastGCMResult = \null

Methods

_sendAPNSMessage()

Send a message to the the APNS with $deviceToken destination Based on: http://www.tagwith.com/question_138013_ssl-connect-to-apns-server-in-local-environment-stream-socket-client-failed Also.. http://stackoverflow.com/questions/28995197/apns-php-stream-socket-client-failed-to-enable-crypto

public _sendAPNSMessage(mixed $type, mixed $deviceToken, mixed $txt, mixed $badge[, mixed $extrapayload = [] ]) : mixed
Parameters
$type : mixed
$deviceToken : mixed
$txt : mixed
$badge : mixed
$extrapayload : mixed = []

sendAPNSLocKey()

public sendAPNSLocKey(mixed $deviceToken, mixed $locKey, mixed $mssg, mixed $badge[, mixed $extrapayload = [] ]) : mixed
Parameters
$deviceToken : mixed
$locKey : mixed
$mssg : mixed
$badge : mixed
$extrapayload : mixed = []

sendAPNSMessage()

Send a message into iOS devices

public sendAPNSMessage( $deviceToken,  $mssg,  $badge[, array<string|int, mixed> $extrapayload = [] ]) : bool
Parameters
$deviceToken :
$mssg :
$badge :
$extrapayload : array<string|int, mixed> = []
Return values
bool

sendGCMMessage()

Android Messages

public sendGCMMessage(mixed $regIds, mixed $pushMssg, mixed $badge[, mixed $extrapayload = [] ]) : mixed
Parameters
$regIds : mixed
$pushMssg : mixed
$badge : mixed
$extrapayload : mixed = []

setAPNS()

public setAPNS(mixed $phrase, mixed $cert[, mixed $url = 'tls://gateway.sandbox.push.apple.com:2195' ]) : mixed
Parameters
$phrase : mixed
$cert : mixed
$url : mixed = 'tls://gateway.sandbox.push.apple.com:2195'

setGCM()

public setGCM(mixed $key[, mixed $url = 'https://android.googleapis.com/gcm/sen' ]) : mixed
Parameters
$key : mixed
$url : mixed = 'https://android.googleapis.com/gcm/sen'

        
On this page

Search results