Use built-in mic while connecting to apple headsets

I have an application that requires high accuracy detection of audio income. Thats why I need to use the built-in mic on the phone. In the app, I set the prefer input port to built-in mic. Which works fine with other headphones but not the default Apple headsets. When I connect to the apple headsets, in the avaliable input ports, there is only Apple headsets. But for other headphones, the Built-in mic is available as well.


I am using audio seesion to handle that.


Is there a way to get the Built-in Mic as input port in this case?


Thanks a lot!