內容簡介
這個外掛是用來使用 Amazon Simple Notification Service 發送推播通知到不同的裝置。
它連接到 Amazon SNS 並獲取所有已建立的主題,然後將訊息發布到那些主題。
使用此外掛需要以下條件。
1. Amazon Web Services 帳戶。
2. Amazon API "Access Key ID"和"Secret Access Key"。
3. 在 SNS 中建立至少一個主題。
以下負載會和您提供的標題和訊息一起發送到所選的主題。
{
"預設": "[訊息]",
"APNS": "{\”aps\”:{\”alert\”: \”[MESSAGE]\”} }",
"APNS_SANDBOX": "{\”aps\”:{\”alert\”:\”[MESSAGE]\”}}",
"GCM": "{ \”data\”: { \”message\”: \”[MESSAGE]\”, \”title\”: \”[TITLE]\”, \”datetime\”: \”[DATETIME]\” } }",
"MPNS" : "1[MESSAGE]",
"WNS" : ""
}
以上負載中以下標記會被提供的數據替換。
[標題] -> 您提供的標題。
[訊息] -> 您提供的訊息。
[DATETIME] -> 伺服器當前日期時間。
外掛標籤
開發者團隊
原文外掛簡介
This plugin is created to send push notifications to different devices using Amazon Simple Notification Service.
It connects with the Amazon SNS and fetch all the Topics created. And publish messages to that topics.
To use this plugin you must need following things.
1. Amazon web service account.
2. Amazon API “Access Key ID” and “Secret Access Key”.
3. Create atleast one topic in SNS.
Following payload is send to the selected topic, togather with the title and message you provide.
{
“default”: “[MESSAGE]”,
“APNS”: “{\”aps\”:{\”alert\”: \”[MESSAGE]\”} }”,
“APNS_SANDBOX”:”{\”aps\”:{\”alert\”:\”[MESSAGE]\”}}”,
“GCM”: “{ \”data\”: { \”message\”: \”[MESSAGE]\”, \”title\”: \”[TITLE]\”, \”datetime\”: \”[DATETIME]\” } }”,
“MPNS” : “1[MESSAGE]”,
“WNS” : “”
}
In above payload following tags are replaced by the data provided.
[TITLE] -> The title you provide.
[MESSAGE] -> The message you provide.
[DATETIME] -> server current datetime.
