I’ve been working with the iOS SDK for about a month and I’m having trouble figuring something out. I have been developing using an iPhone 5S and I’m having a strange issue with it. By default, all audio is played through the earpiece of the phone rather than the built in speaker. As a result everything is very quiet, and what you can hear sounds awful. However, if I plug in headphones they are detected and used automatically. I have also tried my game on iPads and that works just fine. The built in speaker is used.
I’m just wondering if this is a bug, or if that is the expected behavior and I’m just missing something. If that’s the case how do I switch to the builtin speaker from the earpiece? Btw, I’m running iOS 8.4 on my iPhone.