uilocalnotification - Local notification in iOS coming without any sound -


-(void)notifyme {     uilocalnotification *localnotification = [[uilocalnotification alloc] init];     localnotification.firedate = [nsdate datewithtimeintervalsincenow:0.1];     localnotification.timezone = [nstimezone defaulttimezone];     localnotification.alertbody = @"alert";     localnotification.alertaction = @"local notification";     localnotification.soundname = uilocalnotificationdefaultsoundname;     localnotification.alertlaunchimage = nil;     localnotification.userinfo = nil;     [[uiapplication sharedapplication] schedulelocalnotification:localnotification]; } 

this method calling local notification. working fine other applications. working one, notification coming no sound.

i guess there problem app setting, unable find out.

i found question had run same problem. turns out simple fix on part, code fine had enable push notifications app (which had done getting no sound or badge), , switch badge app icon , sound on.

i'm surprised there have been no other answers question in 6 months.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -