ios - Push notification custom sound not played instead of default sound -


my problem here:

i use parse push notifications services, works fine, receive local notifications on device, works, problem @ point: custom sound isn't played, instead, default ios notification sound played.

all done in rules, have supported packaged sound in ".wav" verified quicktime player confirmed custom sound file in "pcm linear" format.

the sound file, correctly present in main bundle of application , copied if needed in copy bundle resources (furthermore, code in appdelegate looking correct)

i show code more details:

nsdictionary *data = [nsdictionary dictionarywithobjectsandkeys:     @"you have received coin !", @"alert",     @"increment", @"badge",     @"custom_bell.wav", @"sound",     nil]; pfpush *push = [[pfpush alloc] init]; [push setdata:data]; [push sendpushinbackground]; 

what missing setting ? why wrong ? changed in ios 8 ?

yes changed in ios 8 because in ios 8 if audio play time more 30 second audio not play, if less 30 sec play easily


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -