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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -