MeisApps / pcbu-natives-old

Moved to https://github.com/MeisApps/pcbu-desktop
GNU General Public License v3.0
21 stars 2 forks source link

Pairing issues on Arch Linux #2

Closed samipfjo closed 1 year ago

samipfjo commented 1 year ago

Phone is a Pixel 7a running Android 13 Computer is running EndeavourOS (Arch)

I'm having issues with pairing on the phone side. I've gotten it to work randomly once but had to re-pair and have not succeeded again. It does not work through local network or bluetooth. I don't get error messages on the computer side, just instantaneous "pairing failed!" when I scan the QR code. All permissions have been granted, my computer firewall is disabled, and my phone's BT is paired with my laptop.

Since this is happening on the Android side my debugging abilities are greatly limited. Any idea what's going on?

samipfjo commented 1 year ago

Whoops, firewalld was not in fact down, and I had removed the firewall rules after I paired them the first time. That's my bad.

With that said, I am a little confused as to why a WiFi connection is necessary when trying to establish a Bluetooth connection. I see from the QR code that the initial handshaking is done via an HTTP server, but could this not be done over Bluetooth instead? There are situations in which users might not want to open a port to set it up, such as setting up the app while on coffee shop WiFi.

Pardon my ignorance here, I've never worked with Bluetooth on the code side, so I'm not sure how difficult this would be to implement.