Check if: headphones are plugged in or not

Hello guys!

I have a problem. My app needs to check whatever a user has plugged in their headphones or not and it’s quite important.

What have i done? I checked solution all over the internet. I am guessing here, but one solution i think for me, is to upgrade my subscription to Corona Enterprise and call out for :Android  AudioManager.isWiredHeadsetOn()

I have no idea how this works but i guess that could be one solution.

My problem here is, maybe there’s a easier method to check whatever user has headphones plugged in or not?

Thanks for answering!

<3 Corona so far.

Our existing Audio API’s do not support checking the headphone.  This would certainly be a project for an Enterprise license.

Rob

Our existing Audio API’s do not support checking the headphone.  This would certainly be a project for an Enterprise license.

Rob