Notification sound doesn't stop when notification is slided from lockscreen
| Originator: | gbi.linphone | ||
| Number: | rdar://15901634 | Date Originated: | 24-Jan-2014 02:49 PM |
| Status: | Open | Resolved: | |
| Product: | iOS7 | Product Version: | 7.0.4 |
| Classification: | Reproducible: | Always |
Summary:
When presenting a local notification in the lockscreen on iOS7 with a sound playing, there is no way to stop the sound from playing.
Using cancelLocalNotification: or cancelAllNotifications: won't stop the sound.
Steps to Reproduce:
* Start you app and lock the screen
* Ask iOS to present a local notification while the app is in background and the screen is locked:
data->notification = [[UILocalNotification alloc] init];
if (data->notification) {
data->notification.repeatInterval = 0;
data->notification.alertBody =[NSString stringWithFormat:NSLocalizedString(@"IC_MSG",nil), address];
data->notification.alertAction = NSLocalizedString(@"Answer", nil);
data->notification.soundName = @"ring.caf";
data->notification.userInfo = [NSDictionary dictionaryWithObject:callId forKey:@"callId"];
[[UIApplication sharedApplication] presentLocalNotificationNow:data->notification];
Expected Results:
When the user slides on the notification, he is led to the application screen, and the notification sound is stopped
Actual Results:
When the user slides on the notification, he is led to the application screen, but the notification sound continues to play. No call to either cancelLocalNotification or cancelAllNotifications will stop the sound.
Version:
7.0.4
Notes:
There seems to be a workaround for *remote* notifications (see http://stackoverflow.com/questions/19124882/stopping-ios-7-remote-notification-sound?lq=1 ) but it doesn't seem to be working for local notifications.
Configuration:
iPad Mini and iPhone 5S
Note: I can reproduce the issue only when the device doesn't have a code for unlocking. If you have a code, sliding the notification leads you to the code prompt, which seems to cancel the sound.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!