Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 1c42e24

Browse files

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/Zend/Mobile/Push/Apns.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,10 @@ public function send(Zend_Mobile_Push_Message_Abstract $message)
305305
if (!is_null($message->getBadge())) {
306306
$payload['aps']['badge'] = $message->getBadge();
307307
}
308-
$payload['aps']['sound'] = $message->getSound();
308+
$sound = $message->getSound();
309+
if (!empty($sound)) {
310+
$payload['aps']['sound'] = $sound;
311+
}
309312

310313
foreach($message->getCustomData() as $k => $v) {
311314
$payload[$k] = $v;

0 commit comments

Comments
 (0)