In objective-c you can get the phone name (e.g My iPhone 5) with [[UIDevice currentDevice] name]
.
I have trying to find out for two days if it is possible to get it from js or php but saw only references to OS version or device model.
In objective-c you can get the phone name (e.g My iPhone 5) with [[UIDevice currentDevice] name]
.
I have trying to find out for two days if it is possible to get it from js or php but saw only references to OS version or device model.
You can parse http user agent string by php:
if(strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) {
echo "You're using iPhone.";
}
if(strstr($_SERVER['HTTP_USER_AGENT'], 'iPod')) {
echo "You're using iPod.";
}
if(strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
echo "You're using iPad.";
}
if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'android')) {
echo "You're using Android device.";
}