The iPhone I'm using for development only outputs sounds through the headphones for all the apps I'm running from xcode. Other apps (like Youtube or iTunes) play sound just fine, and also building and testing the very same apps on a different device (an iPad) works perfectly. Running the apps in simulator also works as intended.
I'm using:
Any tips or hints would be appreciated. Thanks
Sometimes the audio route can get a bit messed up.
You should listen to the audio route changes using the AVAudioSessionRouteChangeNotification
See HandlingAudioHardwareRouteChanges
You can also force the audio route if needed. Working with Audio Input and Output Routes
Oh, and also check the reason for the change to know why its happening on that app. AVAudioSessionRouteChangeReason
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With