When Notification receive os show an alert , is it possible to play sound instead of this alert? and when notification receive os add a red circle on the top of app's icon , is it possible to disable it(means not show this red circle)?
+2
A:
YES, we can play a sound
localNotification.soundName = @"music.caf";
don't set the applicationIconBadgeNumber,alertBody,alertAction property of the localNotification.
All the best.
Warrior
2010-10-14 04:10:23
and how to hide alert and red circle that os show when notification receive ?
2010-10-14 04:15:48
i use this code but doesn't work code: NSURL* musicFile1 = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"01" ofType:@"WAV"]]; NSString *str=[[NSString alloc]initWithFormat:@"%@",musicFile1];localNotification.soundName =str;
2010-10-14 04:21:30
type of music file must be .caf
Warrior
2010-10-14 04:24:04
Thank you so much,just one problem hide red circle
2010-10-14 04:36:00
there should be applicationIconBadgeNumber declared, don,t use it.comment and try. just now i checked its working fine.
Warrior
2010-10-14 04:51:19
See the sample code i have given for your previous post.
Warrior
2010-10-14 04:51:49
can you help me , i want to know how to send localNotification
GhostRider
2010-10-14 05:06:21
@Ghost rider: see this answer http://stackoverflow.com/questions/3924365/local-notification ,it has sample code too.
Warrior
2010-10-14 05:10:21
@Ghost rider --> are you working in A1 tech, mohali..?
Warrior
2010-10-14 05:11:02
Thanx Me not working but i will try after few months
GhostRider
2010-10-14 05:16:25
Thanks for source code and reply have you work on select video , when i try to select it start compressing
GhostRider
2010-10-14 05:22:52
sorry no idea..
Warrior
2010-10-14 05:38:10