xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.53k stars 505 forks source link

DeviceInfo.Name not working on OS16 #2059

Closed taylorjimbo closed 1 year ago

taylorjimbo commented 1 year ago

Property DeviceInfo.Name return iPad for device running iOS 16

UIDevice.current.name worked on iOS15, but when is does not on iOS16 it returns 'iPad' all the time.

I'm guessing this is an Apple entitlement issue

AmrAlSayed0 commented 1 year ago

UIDevice.name

To access the user-assigned device name through this property in iOS 16 and later, your app must meet certain criteria and be assigned an entitlement. For information, see com.apple.developer.device-information.user-assigned-device-name.

jfversluis commented 1 year ago

Looks like if you add the right metadata to your iOS app it will still work. Let us know if that is not the case. Thanks for the report!