How to get an iPad's device name on iOS16?
Asked Answered
C

2

9

UIDevice.current.name it's worked if used iOS15, but when I tested on iOS16 (beta3) still return 'iPad' name all the time.

See related WWDC 2022 video file

  1. https://developer.apple.com/videos/play/wwdc2022/10096/
  2. https://developers.apple.com/videos/play/wwdc2022/10068/

I used:

  • iPadOS (iOS16 beta3)
  • Xcode (Version 14.0 beta 3 (14A5270f))

I added on entitlement, but it's don't work enter image description here

Chuck answered 14/7, 2022 at 15:46 Comment(15)
Why does anyone needs to see related WWDC 2022 video file? Is there any specific info there which you wanted to emphasise?Vendor
reviews on first video file (track: 0:03:11 - 0:03:50) on "UIDevice.name requires the entitlement com.apple.developer.device-information.user-assigned-device-name"Chuck
and reviews on second video file (track 0:23:03)Chuck
So have you added that entitlement?Vendor
I guess the actual question you want to ask here: How do I get that entitlement, right? Well, Apple hasn't told us yet! So please file a Feedback with Apple.Keening
yes, try to added entitlement file, but still don't work, when I debug device name still show 'iPad'Chuck
That's not how you add an entitlement. You need to modify your Entitlements.plist.Keening
Thank you, I added an entitlement file, but don't have any information on dropdown list for about device name.Chuck
Please any new information about this entitlementsHerculean
On iOS16 beta 4 : apple updated some document file : developer.apple.com/documentation/bundleresources/entitlements/…Chuck
@Chuck do you fixed this problem if yes please can you share thatHerculean
We can't fix the problem under Apple enterprise account program, we send request to apple team reviews and wait feedback.Chuck
Now it's worked apple approved i can access to User Assigned Device Name Entitlement web site (under apple enterprise account). Contact to apple team and they will be help you. @HichemRomdhaneChuck
Now it's fixed >> step 1) approve from apple 2) change certificate to support on this feature 3) add file entitlements on iOS project.Chuck
revision from @uthenFlaxseed
F
9

revision on what @uthen mentions

You should

  • The account owner must fill up the request on User-Device User-Device
  • Enable the "additional capabilities" in Developer Portal > IDentifiers > {App Id} > additional capabilities
  • Generate new provisioning profile for development and AppStore
  • if you don't have it "add a new file" property list, rename the file extension to .entitlements set the environment in the Build Settings CODE SIGNING ENTITLEMENTS top the path where the [name].entitlements file is located.
  • in the entitlements file add a new empty entry and set the key to com.apple.developer.device-information.user-assigned-device-name, the type to Boolean and the value to true
Flaxseed answered 14/12, 2022 at 16:51 Comment(0)
S
0

One additional thing helped me here, when you gets the valid provisioning profile for device name, import that at signing & capabilities and then at same tab we need to add the device name entitlement as shown in below screen shot

enter image description here

Shon answered 23/9, 2024 at 7:20 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.