iOS useIsHeadphonesConnected not detecting lightning device or wired adapter
See original GitHub issueSummary
Version | 8.3.1 |
Affected OS | iOS |
OS Version | 14.7 |
Current behavior
Connecting a lightning jack-adapter or a lightning microphone won’t trigger any event. The useIsHeadphonesConnected();
hook always returns {"loading": false, "result": false}
Expected behavior
Connecting a lightning jack-adapter or a lightning microphone should return true on the result field of useIsHeadphonesConnected();
DEVICE NOT CONNECTED
{"loading": false, "result": false} = useIsHeadphonesConnected()
DEVICE CONNECTED
{"loading": false, "result": true} = useIsHeadphonesConnected()
NOTE:
Bluetooth headset or AirPods instead work perfectly
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
iPhone Lightning Adapter Not Working? Here's The Fix!
Here's a quick tutorial on How To Fix your iPhone Lightning Adapter, commonly known as the Apple connector.▻Found my video helpful?
Read more >how to connect lightning to ethernet - Apple Community
I just received the new USB 3 Camera Connection Kit (works with USB 2 as well). I just tested it on an iPad...
Read more >react-native-device-info - npm
Start using react-native-device-info in your project by running `npm ... Your iOS Podfile will need to move to an iOS 10 minimum. v7...
Read more >ios - Is there a way to detect that a USB Ethernet Adapter is ...
After more testing I found out that the iPhone indeed creates a new network interface with a self-assigned IP but it took some...
Read more >View Live Global Lightning on Your iPhone and iPad
WeatherBug 3.5 for iOS sports a sleeker UI, improved navigation, and an update to its popular Spark lightning detection feature.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll try to get to this over the weekend, but if anyone wants to be a hero… lol
Hello!
Since I wrote it, I can look into this.
I’m pretty sure that I tested this, maybe an API changed recently?