With the iOS7 the AudioSession Category AVAudioSessionCategoryPlayAndRecord
asks for Microphone permission. However, that permission doesn't feel right if I only need to support bluetooth for external audio. There are some people that are in the same situation as I am right now, but I can't find an answer for this.
In iOS6 I was using this code to route the sound to bluetooth devices:
[[AVAudioSession sharedInstance] setDelegate:self];
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord
error:&sessionError];
AudioSessionSetActive (true);
UInt32 audioCategory = kAudioSessionCategory_MediaPlayback;
AudioSessionSetProperty (kAudioSessionProperty_AudioCategory,
sizeof (audioCategory), &audioCategory);
Is there any way to support a bluetooth device without using a audio session category that asks the user permission to use the microphone?
PS: I have noticed that google does the same with maps and youtube. Is it possible that we can't get around this issue on iOS7?