UNICORN - server side
公開メンバ関数 | 限定公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
GenericAWSNotification クラス

公開メンバ関数

 createPlatformEndpoint ($argDevicetoken, $argDeviceType, $argSandbox=FALSE)
 
 pushMessage ($argDeviceIdentifier, $argDeviceType, $argMessage, $argBadge=1, $argCustomURLScheme=NULL, $argSandbox=FALSE)
 
 pushJson ($argDeviceIdentifier, $argDeviceType, $argments, $argSandbox=FALSE)
 

限定公開メンバ関数

 _init ()
 

限定公開変数類

 $_initialized = FALSE
 
 $_AWS = NULL
 
 $_region = NULL
 
 $_arnBase = NULL
 

詳解

Amazon Simple Notification Service(Amazon SNS)を利用してモバイルデバイスに対してプッシュ通知を行います。

著者
saimushi
参照
Amazon Simple Notification Service
AWS SDK for PHP documentation

関数詳解

GenericAWSNotification::_init ( )
protected

初期化します。

Configureの値をもとにAmazon SNSの初期化を行います。

GenericAWSNotification::createPlatformEndpoint (   $argDevicetoken,
  $argDeviceType,
  $argSandbox = FALSE 
)

Push通知先(EndpointArn)を登録します。

引数
string$argDevicetokenデバイストークン
string$argDeviceTypeデバイスタイプ
  • iOS
  • iPhone
  • iPad
  • iPod
  • Android
戻り値
Model|boolean 結果もしくはfalse
GenericAWSNotification::pushJson (   $argDeviceIdentifier,
  $argDeviceType,
  $argments,
  $argSandbox = FALSE 
)

メッセージを通知します。

引数
string$argDeviceIdentifierデバイス識別子
string$argDeviceTypeデバイスタイプ
  • iOS
  • iPhone
  • iPad
  • iPod
  • Android
array$argmentsメッセージ詳細
key type require default description
alert string true メッセージ
badge integer true 1 バッジ数
sound string true default 通知音
戻り値
Model|boolean 結果もしくはfalse
GenericAWSNotification::pushMessage (   $argDeviceIdentifier,
  $argDeviceType,
  $argMessage,
  $argBadge = 1,
  $argCustomURLScheme = NULL,
  $argSandbox = FALSE 
)

メッセージを通知します。

引数
string$argDeviceIdentifierデバイス識別子
string$argDeviceTypeデバイスタイプ
  • iOS
  • iPhone
  • iPad
  • iPod
  • Android
string$argMessageメッセージ
integer$argBadgeバッジ数
string$argCustomURLSchemeカスタムURLスキーマ
戻り値
Model|boolean 結果もしくはfalse

このクラス詳解は次のファイルから抽出されました: