Nirmal
Nirmal

Reputation: 4829

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....

Upvotes: 5

Views: 7182

Answers (1)

Nyx0uf
Nyx0uf

Reputation: 4649

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

Upvotes: 8

Related Questions