qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist
-
I want't to request bluetooth permission in qt6.6.2.
It works fine on Android but doesn't work on iOS or Mac OS.I'v set Info.plist in CmakeLists.txt:
set_target_properties(MyProject PROPERTIES MACOSX_BUNDLE TRUE MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/resources/Info.macos.plist" )Info.plist:
<key>NSBluetoothAlwaysUsageDescription</key> <string>Our app uses bluetooth to find, connect and transfer data between different devices</string>request in code:
qApp->requestPermission( bluetoothPermission, this, [=]( const QPermission &permission ) {got error as title:
qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plistHow do I fix this? thank you.
-
I had this situation, it turns out you have to link explicitly with Qt6::QDarwinBluetoothPermissionPlugin
@jcelerier said in qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist:
I had this situation, it turns out you have to link explicitly with Qt6::QDarwinBluetoothPermissionPlugin
Thank you!! This is exactly what I needed, and did not find anywhere else. If could give up-vote your reply multiple times, I would! 😊