Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Push Notification - How to use default sound

I have implemented whole push notification service for my application using easyapns.

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

Now, from server (php file), i am passing sound file name like :

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

And I am including this 'bingbong.aiff' file in iPhone's Resource folder.

But Now I have a query that is it possible to play a default in-built sound of iPhone device instead of specify it externally ?

Thanks in advance....

like image 939
Nirmal Avatar asked Jul 07 '10 05:07

Nirmal


1 Answers

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

like image 132
Nyx0uf Avatar answered Sep 24 '22 19:09

Nyx0uf