由於使用IOS8的任何人的IOS8版本都沒有收到我的通知。任何使用IOS 7x的人都會繼續接收它們。適用於IOS8的AWS SNS
我使用AWS SNS發出通知和我的代碼,它的工作是這樣的:
$snsmessage = $sns->publish(
array(
'TargetArn' => $endpoint,
'MessageStructure' => 'json',
'Message' => json_encode(array(
'APNS' => json_encode(array(
'aps' => array(
'alert' => "message goes here",
'badge'=>1,
'sound'=>'default'
)
))
))
)
);
具有結構變化IOS 8?爲了讓他們在ios8和ios7上工作,我需要改變什麼?
您可能更願意直接聯繫亞馬遜支持 - 看起來這個問題也出現在AWS論壇上:https://forums.aws.amazon.com/thread.jspa?messageID=571264 – Krease 2014-10-05 05:52:43