Lower Handset Detection Problem

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Lower Handset Detection Problem

Postby real01722 » Wed May 20, 2015 7:22 am

I have tried to to get the brand, model name for a lowre level handset (Symphony Xplorer W67).
To do this I have used a standard account but its showing me the brand name as Generic instead of its original brand name (Symphony) but when I try it through the domain(tools.scientiamobile.com) things are working properly.

Require instruction for its proper integration. Please do suggest
Last edited by real01722 on Wed May 20, 2015 9:23 am, edited 1 time in total.

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Wed May 20, 2015 8:57 am

Are you able to provide me with the User Agent for this device so that I can investigate further?

Thank you,

Elliot

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Wed May 20, 2015 9:44 am

I have added the following code and placed it in example directory with the name of rest.php
===============================================================================
<?php
require_once '../src/autoload.php';
$config = new ScientiaMobile\WurflCloud\Config();
$config->api_key = '871719:dZGjRLihxP6CofEyvUTNQkuMKXlAmpFI';
$client = new ScientiaMobile\WurflCloud\Client($config);
$client->detectDevice();

if ($client->getDeviceCapability('model_name')) {
echo 'brand:'.$client->getDeviceCapability('brand_name');
echo '<br />';
echo 'model:'.$client->getDeviceCapability('model_name');
echo '<br />';
echo 'browser:'.$client->getDeviceCapability('mobile_browser');
echo '<br />';
echo 'b version:'.$client->getDeviceCapability('mobile_browser_version');
echo '<br />';
} else {
echo "Not Found";
}

and its showing the following output
================================
brand:Generic
model:Android 4.4
browser:Chrome Mobile
b version:

its not showing the browser version also

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Wed May 20, 2015 9:50 am

Are you able to provide the User Agent for this device?

Thank you,

Elliot

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Wed May 20, 2015 10:47 am

Hello,

The device in question was added to the WURFL database just a few days ago and has not been made available to the WURFL cloud as of yet. You will see this device added as soon as the WURFL cloud has been updated. I will let you know as soon as it is available.


Thank you,

Elliot

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Wed May 20, 2015 1:17 pm

Thanks for your continuous reply. I am concern about a matter that this handset (Symphony Xplorer W67) is a very old handset which has released approximately 9 months ago and this has recently added to your WURFL DB and yet not been available to your cloud system

So it’s a matter of fact that our most of the users is using Chinese handset e.g. Symphony, Walton, Maximus handset.
In that case can you please share your opinion about how we will detect those handsets with the license version of WURFL?

Or if we share a list of handset, is it possible to integrate them in WURFL DB as well in the cloud system?

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Wed May 20, 2015 3:41 pm

I apologize that this device was not added until recently. This is certainly not a common occurrance when adding new devices into WURFL.

The WURFL cloud clients do not support the use of patch files in the same way that our OnSite APIs do since they are fetching all data from the WURFL cloud service. If you are finding any other devices that are not properly detected, we would be happy to include them into the WURFL database and make them available to the WURFL cloud service.

If you would like, I can put you in contact with our sales team to discuss licensing options for an OnSite version of the API?

Thank you,

Elliot

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Wed May 20, 2015 11:22 pm

thanks for your reply. I have downloaded your onsite version where Symphony Xplorer W67 handsets Brand Name showing as Generic but when i test it through tools.scientiamobile.com its showing me the proper solution. So I want to test your onsite api with my different handset which is properly working or integrated with (tools.scientiamobile.com). Is it possible?

Thanks
Sahjadul Karim

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Thu May 21, 2015 7:02 am

I have downloaded the onsite API from the link provided by your commercial
After download I have rename the project name with mob_detect and placed it in my local server.
I have run the mob_detect/examples/demo/index.php from my local server

And it’s showing me same output as before Symphony Xplorer W67 is detecting as Generic
Please do suggest what to do

Thanking You
Sahjadul karim

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Thu May 21, 2015 8:42 am

Sahjadul,

This will be corrected in the next wurfl.xml release. The WURFL database is released on a weekly basis and since this change was made in the past couple of days, it is not yet available. If you would like, I can send you an out of band snapshot with the latest changes?

Thank you,

Elliot

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Thu May 21, 2015 11:52 am

As our product launch date is knocking at the door so can I gently ask you, when you are going to release your next wurfl. xml version?

Thank You
Sahjadul Karim

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Thu May 21, 2015 12:41 pm

Sahjadul,

The wurfl.xml is released on a weekly basis (every Sunday).

Thank you,

Elliot

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Sun May 24, 2015 1:02 am

Hi elliot

I have searched on www.scientiamobile.com/myaccount (in the block of WURFL Snapshots) for new release

as we discussed with our last conversation today you had to upload your new wurfl.xml and
according to my above(link) observation which is still not updated. Can you please share when I can test with your new release ?

Thanks
Sahjadul karim

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Sun May 24, 2015 2:08 pm

Sahjadul,

I have just checked your account and you do have access to todays snapshot (May 24th). Are you able to confirm that you are able to access it from your account as well?

Thank you,

Elliot

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Mon May 25, 2015 12:03 am

Hi Elliot

Once again i ve downloaded your wurfl bundle and tries to detect but its showoing
me brand name: generic same as before

One thing I need to know wurfl.xml which one you have released do i need to place it
in the location of

wurfl-php-1.6.0.1/test/resources/wurlf.xml
or
wurfl-php-1.6.0.1/WURFL/Xml/wurlf.xml

or how the latest release of wurfl.xml work for me please do instruct

Thank You
Sahjadul Karim

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Tue May 26, 2015 9:18 am

Sahjadul,

I have just tested the User Agent (below) with the latest release of the wurfl.xml and can confirm that it is being properly detected. From what you have mentioned, either the latest wurfl.xml is not being properly loaded or a cached response is being served by the API. The wurfl.xml that will need to be updated will depend on the path configured in your WURFL Manager object. By default, the example project will use `/test/resources/wurlf.zip` when loading.

User Agent:
W67/V1 Linux/3.4.67 Android/4.4.2 Release/08.12.2014 Browser/AppleWebKit537.36 Mobile Safari/537.36 System/Android 4.4.2

Thank you,

Elliot

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Wed May 27, 2015 1:09 am

Hi Elliot,

New release of wurfl.zip is loaded and directory path is properly configured as (test/resources/wurfl.xml) and the output is showing as follows

WURFL XML INFO

VERSION 1.6 Beta March 19, db.scientiamobile.com – 2015-03-19:57:31

User Agent: W67/V1 Linux/3.4.67 Android/4.4.2 Release/08.11.2014
Browser/AppleWebKit537.36 Mobile Safari/537.36 System/Android 4.4.2


• ID: generic_android_ver4_4
• Brand Name: Generic
• Model Name: Android 4.4
• Marketing Name:
• Preferred markup: html_web_4_0
• Resolution Width: 320
• Resolution Height: 480

Query WURFL BY providing the user agent:

Thank You
Sahjadul Karim

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Wed May 27, 2015 9:41 am

Sahjadul,

It does not appear that the WURFL file is being reloaded by the API. My apologies, the default location is located at `examples/resources/`, however this can be configured when configuring your WURFL manager. I have posted an example configuration. If you have set allowReload to true, the WURFL API will automatically reload the WURFL file if the wurfl.xml has been updated. However, it may be helpful to remove the persistence directory (default location is `examples/resources/storage/persistence`).

Code: Select all

$wurflDir = 'WURFL-API-PHP/WURFL';
$resourcesDir = 'WURFL-API-PHP/examples/resources/resources';

require_once $wurflDir.'/Application.php';
$persistenceDir = $resourcesDir.'/storage/persistence';
$cacheDir = $resourcesDir.'/storage/cache';

// Create WURFL Configuration
$wurflConfig = new WURFL_Configuration_InMemoryConfig();

// Set location of the WURFL File
$wurflConfig->wurflFile($resourcesDir.'/wurfl.zip');

// Set the match mode for the API ('performance' or 'accuracy')
$wurflConfig->matchMode('performance');

// Automatically reload the WURFL data if it changes
$wurflConfig->allowReload(true);

// Setup WURFL Persistence
$wurflConfig->persistence('file', array('dir' => $persistenceDir));

// Setup Caching
$wurflConfig->cache('file', array('dir' => $cacheDir, 'expiration' => 36000));

// Create a WURFL Manager Factory from the WURFL Configuration
$wurflManagerFactory = new WURFL_WURFLManagerFactory($wurflConfig);

// Create a WURFL Manager
/* @var $wurflManager WURFL_WURFLManager */
$wurflManager = $wurflManagerFactory->create();

real01722
Posts: 10
Joined: Wed May 20, 2015 6:57 am

Re: Lower Handset Detection Problem

Postby real01722 » Thu May 28, 2015 12:27 am

HI Elliot,

As your instruction once again I changed the path but still it's not working

Here is my project link, please check it
https://www.dropbox.com/s/nhmkrpmzmg6om ... t.rar?dl=0

OR

It would be the simpler solution if you share a configured bundle with the latest release of WURFL

Thanking You
Sahjadul Karim

Elliotfehr

Re: Lower Handset Detection Problem

Postby Elliotfehr » Thu May 28, 2015 8:48 am

Sahjadul,

I have just downloaded your project and it is currently configured to use the a wurfl.zip file located at `examples/resources/wurfl.zip`. Simply replacing this wurfl.zip with the latest copy of the WURFL file will cause the API to automatically reload the WURFL file on the next detection. You will need to make sure that your web server has read write access to `examples/resources/storage` as well.

Thank you,

Elliot


Who is online

Users browsing this forum: No registered users and 5 guests