-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Bluetooth disabled notification after allowing bluetooth access M1 macOS 12.4 #68
Comments
Yes the Bluetooth and permission detection can be a little shaky on macOS, but that's usually not that problematic. I'll see if I can fix that once and for... well until next time it break anyway... |
I'm seeing this one too, though it works if the binary is launched from a terminal rather than through finder which is certainly strange. |
I also see it on an M1 |
I got this error when I ran it from CLI |
Sounds like a |
Indeed. Can you try with a more recent build? It has both improvements and newer Qt version, maybe that will help. |
Still having this issue with version 5 on Mac OS 13.2.1. Also tried a recent build with no luck. |
Yes I'm really sorry, this problem has proven difficult to understand and to solve... |
I've also spent an hour trying to find the error. Imho this must be an upstream bug in Qt and/or OS X? // Edit: Imho either the .entitlements is not applied correctly when the app is build for OS X and/or bluetooth access is only possible when the app correctly signed (and its a bug for untrusted apps). |
Yes Qt doesn't have a great integration of the "new" Bluetooth permission for macOS. That permission appeared recently, and it was working better before, that is a fact.
There were even weirder cases before, like the app run through Qt Creator, run with a terminal or launched through the icon not behaving the same.
That is definitely an issue. I think the app cannot save the permission if not signed, and so every time you launch the app it will ask for it again, and exhibit this issue. It cannot just launch with a permission granted and run like it was running before the permission issue. |
I think I figured it out. On my local install, I've just added this to my Info.plist: <key>UIBackgroundModes</key>
<array>
<string>bluetooth-central</string>
</array>
Someone able to confirm this? Have it from here: https://stackoverflow.com/a/48390949 Possible value are here: https://developer.apple.com/documentation/bundleresources/information_property_list/uibackgroundmodes |
That's interesting, but it is said that UIBackgroundModes is only for iOS, and that using it prevents you from being accepted on the app store. Weird option... I'll test this on a mac but yes we'll need people to confirm this has an actual impact beyond placebo. |
@emericg I've just checked if this automatically prevents you from being accepted to the Appstore and that should only be the case if your App doesn't use Bluetooth (or an Apple employee doesn't understand that is does). And from what I've read this values is definitely needed for Bluetooth to function. I've now working the fifth day with this option. |
It made zero difference in my testing, and the doc still says for iOS only. |
Tested once again with build 7233199927 and can confirm it's working. |
I have the same issue with the last build (https://github.com/emericg/WatchFlower/actions/runs/7233199927) |
I removed the permission manually and now I'm unable to get it working again. Very weird. |
Describe the bug
Bluetooth disabled notification after allowing bluetooth acces macOS 12.4. When the app launches I give it permission but all devices show as offline with a notification that my bluetooth is disabled. Also granted additional access in privacy & settings > bluetooth, to see if that makes any difference.
iPad version that can be run from Mac App Store on M1 iMac doesn't have this issue
Expected behavior
Sensors show as online
To Reproduce
Steps to reproduce the behavior:
Screenshots
Your environment
Please describe the environment you are using:
The text was updated successfully, but these errors were encountered: