IPhone Push Notification - How to use default sound

I performed the entire push notification service for my application using easyapns .

I implemented the server part using php and using the default php classes provided by easyapns.

Now, from the server (php file), I transfer the sound file name, for example:

$apns->addMessageSound('bingbong.aiff');

And I include this “bingbong.aiff” file in the “iPhone Resource” folder.

But now I have a request that allows you to play the built-in sound of the iPhone device by default, and not specify it externally?

Thanks in advance....

+5
source share
1 answer

Usually $apns->addMessageSound('default');should do the trick.

+8
source

All Articles