iphone - Configuring the sound played when Push Notification is received -



iphone - Configuring the sound played when Push Notification is received -

how can configure sound gets played when application in background , force notification received?

check out "the notification payload" section of this document.

example json payload (adapted above document):

{ "aps" : { "alert" : "you got emails.", "badge" : 9, "sound" : "bingbong.aiff" } }

the key you're looking here sound, it's string points aiff, caf, or wav file within bundle.

iphone objective-c ios cocoa-touch push-notification

Comments

Popular posts from this blog

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -