Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist
Forum Updated to NodeBB v4.3 + New Features

qt.permissions: Could not find permission plugin for QBluetoothPermission. Please make sure you have included the required usage description in your Info.plist

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 682 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zhou Weixian
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zzll
      wrote on last edited by
      #2

      Hello, I have also encountered this issue. Is it okay for me to use the plist file in the Qt Bluetooth shared folder? Once I try to modify the plist file, I will encounter the same error as you. Has your problem been resolved?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LQ123
        wrote on last edited by
        #3

        Hello, I also encountered this situation. Have you found a solution?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved