I am developing an application that takes some notes when the application is in the foreground and in the background. What works. However, I noticed that the βsystemβ sounds like alarm sounds and the vibrations are muted whenever my audio session is active (see below). This is true even if the application is in the background.
As a result, I stop receiving / vibe notification sounds for standard things like text messages while my application is in the background and recording is on.
The audio session is set as follows:
AVAudioSession* session = [AVAudioSession sharedInstance]; [session setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionMixWithOthers error:&error];
Obviously these sounds / vibrations do not mix, so I think they are muffled.
Is there any way around this (while keeping an active record)? . How can I record and allow the user to receive sound notifications and vibrations?
source share