How to get device name on iOS 16 or later in MAUI


    According to Apple announcement. In iOS 16 or later developers need to request an entitlement for user-assigned device name.

    See user-assigned-device-name to request an entitlement. After completing a form, apple will send you a confirmation email and inform you the progress of your request.

    After Apple approved your request, you need to do several steps to get device name:

    1. Visit https://developer.apple.com/account/resources/identifiers, then click on your app, select Additional Capabilities tab, next enable User Assigned Device Name.

    Save and download the file, replace old file by the newest.

    2. Add following code in Entitlement.plist file in Platforms/iOS folder, if this file was not created, you need to create a new one.

    3. Republish your app and you will get the device name.