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
Post a Comment