question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS useIsHeadphonesConnected not detecting lightning device or wired adapter

See original GitHub issue

Summary

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:closed
  • Created 2 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
schiecommented, Sep 17, 2021

I’ll try to get to this over the weekend, but if anyone wants to be a hero… lol

2reactions
schiecommented, Sep 3, 2021

Hello!

Since I wrote it, I can look into this.

I’m pretty sure that I tested this, maybe an API changed recently?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found