|
| createPlatformEndpoint ($argDevicetoken, $argDeviceType, $argSandbox=FALSE) |
|
| pushMessage ($argDeviceIdentifier, $argDeviceType, $argMessage, $argBadge=1, $argCustomURLScheme=NULL, $argSandbox=FALSE) |
|
| pushJson ($argDeviceIdentifier, $argDeviceType, $argments, $argSandbox=FALSE) |
|
|
| $_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
このクラス詳解は次のファイルから抽出されました:
- GenericPackage/class/AWS/GenericAWSNotification.class.php