devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.
MIT License
4.42k stars 428 forks source link

Support distinguish WIFI / WIFI + Cellular iPads #297

Open haojin2020 opened 2 years ago

haojin2020 commented 2 years ago

Can we add the feature to distinguish if the iPad is WIFI Only or WIFI + Cellular version?

Zandor300 commented 2 years ago

Could be a cool feature to implement, would however require a rewrite of a big portion of how the device identifiers are setup.

daadu commented 2 years ago

also add Wifi generation/standard supported info

I have curated this info from - https://en.wikipedia.org/wiki/List_of_iOS_and_iPadOS_devices

        if device.isPod {
          // iPod 6,7 - Wi-Fi (802.11 a/b/g/n/ac)
          // iPod 5 - Wi-Fi (802.11 a/b/g/n)
          // iPod 4 - Wi-Fi (802.11 b/g/n)
          // iPod <3 - Wi-Fi (802.11 b/g)
        } else if device.isPhone {
          // iPhone SE2,11x,12x,13x - Wi- (802.11 a/b/g/n/ac/ax)
          // iPhone 6x,SE,7x,8X,Xx - Wi-Fi (802.11 a/b/g/n/ac)
          // iPhone 5x - Wi-Fi (802.11 a/b/g/n)
          // iPhone 4x - Wi-Fi (802.11 b/g/n)
          // iPhone <3x - Wi-Fi (802.11 b/g)
        } else if device.isPad {
          // iPad 5,6,7,8,9 - Wi-Fi (802.11a/b/g/n/ac)
          // iPad <4 - Wi-Fi (802.11 a/b/g/n)
          // iPad Mini 6 - Wi-Fi 6 (802.11a/b/g/n/ac/ax)
          // iPad Mini 4,5 - Wi-Fi (802.11 a/b/g/n/ac)
          // iPad Mini <3-  Wi-Fi (802.11 a/b/g/n)
          // iPad Air 4 - Wi-Fi 6 (802.11a/b/g/n/ac/ax)
          // iPad Air 2,3 - Wi-Fi 5 (802.11a/b/g/n/ac)
          // iPad Air 1 - Wi-Fi (802.11a/b/g/n)
          // iPad Pro - Wi-Fi 5 (802.11a/b/g/n/ac)
        } 

I am not an iOS dev

furiosFast commented 1 year ago

are there updates about this request??