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
$error
public
mixed
$error
= \false
$errorMsg
public
mixed
$errorMsg
= ''
$lastGCMResult
public
mixed
$lastGCMResult
= \null
$apns
private
mixed
$apns
= array()
$core
private
mixed
$core
$gcm
private
mixed
$gcm
= array()
Methods
__construct()
public
__construct(Core7 &$core) : mixed
Parameters
- $core : Core7
_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 = []
closeAPNS()
public
closeAPNS() : 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
Return values
boolsendGCMMessage()
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'