maui do not support ios bluetooth?

mc 4,836 Reputation points
2024-11-11T06:01:09+00:00
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,714 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 45,486 Reputation points Microsoft Vendor
    2024-11-11T06:21:56.4+00:00

    Hello,

    The API provided by Permissions is suitable for applying for some permissions that need to be applied dynamically at runtime.

    On the iOS platform, Bluetooth is not a runtime permission. You need to put the statement of the application permission into the Info.plist file to use the Bluetooth feature.

    <key>UIBackgroundModes</key>
    <array>
        <!--for connecting to devices (client)-->
        <string>bluetooth-central</string>
        <!--for server configurations if needed-->
        <string>bluetooth-peripheral</string>
    </array>
    
    <!--Description of the Bluetooth request message (required on iOS 10, deprecated)-->
    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>YOUR CUSTOM MESSAGE</string>
    
    <!--Description of the Bluetooth request message (required on iOS 13)-->
    <key>NSBluetoothAlwaysUsageDescription</key>
    <string>YOUR CUSTOM MESSAGE</string>
    

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.