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.plist
How do I fix this? thank you.