Sound file continues playing after LocalNotification is answered.

Originator:tommy
Number:rdar://16312923 Date Originated:03/13/2014
Status:Open Resolved:No
Product:iOS Product Version:7.1.0
Classification:High Reproducible:100%
 
Summary:
When our app sends out a local notification a sound file is attached to it.  If it is accepted from the locked screen (by flicking "slide to accept"), the app comes to the foreground as expected, but the sound continues to play.  After about 30 seconds, it will stop.

Steps to Reproduce:
You should be able to reproduce it with the attached sample project file(LocalNotificationSample).
After installing the app to your device, but before starting it
1) Make sure the sound is turned on for the application's Local Notifications in the ios' Settings.
2) Make sure a passcode is not required for unlocking the screen

Now,
3) Start the app,
4) When the white view displays, turn the device's screen off by pressing the device's Power button.
5) After about 5 seconds, the device should display a local notification with a sound file playing. 
6) Accept the notification by sliding the "slide to accept" button from the locked screen.

Expected Results:
The application will come to the foreground and the sound that the local notification was playing will end.

Actual Results:
The application will come to the foreground and the sound that the local notification was playing continues to play for about 30 seconds.

Version:
Tested on iPhone5s/5/4s
all running ios 7.1.0 (latest version)

Notes:
This problem originally appeared for us with our VoIP application when answering incoming calls.  But we have since reproduced it in the attached sample application.  

We have not been able to come up with a workaround yet, so any assistance or support you may be able to provide us will be totally appreciated.  

Configuration:
It seems to occur only when a local notification is accepted from a locked screen.
It does not occur if the screen is locked with passcode.
It does not occur if the notification is accepted with the "slide to unlock" button.
It does not occur if the notification is accepted from an unlocked screen, (ie., the app is in the background because the "home" button was pressed.)

Attachments:
'LocalNotificationSample-console_output.txt' and 'LocalNotificationSample.zip' were successfully uploaded.

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!