Screen.dpi returning wrong value on latest iPhones

Tested in Unity version 2021.3.33f1 LTS on an iPhone 15 Plus.
Screen.dpi is returning 326 instead of 460, a pretty big difference which makes its screen prediction the size of a 10 inch iPad.

Also UnityEngine.iOS.Device.generation will return iPhoneUnknown for the iPhone 15 family and the following will result in a compilation error if included in code:

DeviceGeneration.iPhone15
DeviceGeneration.iPhone15Plus
DeviceGeneration.iPhone15Pro
DeviceGeneration.iPhone15ProMax

Hi,

Thanks for posting. The fix is currently underway and will be available in 2021.3.34f1 which is expected to be released in January.

Nice, great to hear. But how does it work for future Apple releases, do we have to rush an update on every new iPhone/iPad?

Yes, if you depend on DPI values. You can take a look at UnityDeviceDPI() function in generated iOS project and edit values independently of Unity release.