Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media Keys on Android do not work after reconnect BLE #12

Closed
mini1053 opened this issue Feb 4, 2020 · 6 comments
Closed

Media Keys on Android do not work after reconnect BLE #12

mini1053 opened this issue Feb 4, 2020 · 6 comments

Comments

@mini1053
Copy link

mini1053 commented Feb 4, 2020

I send media key commands and it works fine on my Android device.
But if connection is lost (to far away) or ESP32 is restarted the BLE connection is reestablished but my Android device will not get the media key information anymore/or does not react to it. I can send text with print or characters with write and this works fine.
With mit IOS device everything works fine even after lot connection and reconnect.
If I do a new pairing between Android device and ESP it works again fine.
Tested now on two different Android devices.
Do you have any clue why media key commands do not work after reconnect?

@T-vK
Copy link
Owner

T-vK commented Feb 5, 2020

That's very odd. Can you tell me which devices you tested this on and tell me their Android/iOS version?
Did this happen with one of the provided examples? (If not, I'd like to check your code.)

For now, my guess is that Bluetooth on Android is just buggy. I've had issues with Bluetooth headsets on several Android devices that often required re-pairing after a disconnect.

@mini1053
Copy link
Author

mini1053 commented Feb 5, 2020 via email

@mini1053
Copy link
Author

mini1053 commented Feb 5, 2020 via email

@mini1053
Copy link
Author

mini1053 commented Feb 7, 2020 via email

@xillus1
Copy link

xillus1 commented Feb 15, 2020

The problem is on class BleConnectionStatus, in the callbacks methods. You must set notification true or false also for the inputMediaKeys.

@T-vK
Copy link
Owner

T-vK commented Feb 27, 2020

Thanks to @mwinters-stuff for fixing this in #16 . This is now fixed in release 0.2.1.

@T-vK T-vK closed this as completed Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants