Dear All,
I develop a wap portal for games. My problem is to detect handset device perfectly. My games provider provide me the supported handset list like this:
Nokia6300, SGH-X200, MOT-C261, SIE-CX70, SAMSUNG-SGH-Z140
So, I have to detect the supported games for the particular wap user.
I can easily detect the handset for nokia devices using below command:
require_once('../TeraWurfl.php');
$wurflObj = new TeraWurfl();
$matched = $wurflObj->getDeviceCapabilitiesFromAgent();
$brand_name = $wurflObj->getDeviceCapability("brand_name");
$model_name = $wurflObj->getDeviceCapability("model_name");
$handset=$brand_name. $model_name;
//Nokia6300,Nokia6600 etc.
But the problem is for siemence ,Motorola ,some Samsung sets,and lot of others. Let say the user agent:
SIE-CX70/36 UP.Browser/7.0.2.2.156(GUI) MMP/2.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
Provide me the model name: CX70 and Brand Name: Siemens. So if I concatenate then get the value: SiemensCX70.But the actual is: SIE-CX70. So, Information mis-match.
Now my question is how can I detection the perfect handset. Please help me to retrieve the actual info.
Thanks riad