Is there any good way to 100% detect if user device is IPhone 5(and not SE). To be correctly i need to know if IOS device model is < than IPhone 6 and != IPhone SE.
Checking CPU speed as i think is not a correct way for device detection.
Is there any good way to 100% detect if user device is IPhone 5(and not SE). To be correctly i need to know if IOS device model is < than IPhone 6 and != IPhone SE.
Checking CPU speed as i think is not a correct way for device detection.
If you're trying to detect support for Apple Pay, then according to the Apple developer support web site:
Before displaying an Apple Pay button or creating an Apple Pay session, you must ensure that the Apple Pay JS API is available and enabled on the current device. To check whether the Apple Pay JS API is available in the browser, verify that the window.ApplePaySession class exists:
if (window.ApplePaySession) {
// The Apple Pay JS API is available.
}
You can ask for model name, iPhone SE
is iPhone8,4
and iPhone 5S
are iPhone6,1
& iPhone6,2
.