Getting always false for "

I have this HTTP request, I expected this, but WURFL is returning that. Please provide enough data to reproduce the problem.
corebank
Posts: 2
Joined: Wed Nov 11, 2015 8:52 am

Getting always false for "

Postby corebank » Wed Nov 11, 2015 9:00 am

Hello!

We are trying to decide about the devices if it is mobile with the "is_wireless_device" key, but getting always "False". Tried it with IPhone 6, HTC, Samsung and Nokia Lumia.

We are using this code:

Code: Select all

using System;
using ScientiaMobile.WurflCloud;
using ScientiaMobile.WurflCloud.Cache;
using ScientiaMobile.WurflCloud.Device;
using ScientiaMobile.WurflCloud.Config;

namespace asd
{
    class MainClass
    {
        public static void Main (string[] args)
        {
            var config = new DefaultCloudClientConfig("776136:I82dAhofHyTwtbD7P4nLrQWux091CX5g", false);

            var manager = new CloudClientManager(config, new CookieWurflCloudCache());
            var context = "Mozilla/5.0 (Linux; Android 5.0; SAMSUNG SM-G900F Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1 Chrome/34.0.1847.76 Mobile Safari/537.36";
            var info = manager.GetDeviceInfo(context, new[] { "is_wireless_device", "model_name" });
            Console.WriteLine(info.Get("is_wireless_device"));
        } 
    }
}
Can you hel us with it?

Thanks,
Gyula

Elliotfehr

Re: Getting always false for "

Postby Elliotfehr » Wed Nov 11, 2015 9:35 am

Gyula,

Are you able to provide me with the User Agents for these devices so that I can investigate further?

Thank you,

Elliot

corebank
Posts: 2
Joined: Wed Nov 11, 2015 8:52 am

Re: Getting always false for "

Postby corebank » Thu Nov 12, 2015 6:30 am

Sure thing:

Iphone : Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1
HTC : Mozilla/5.0 (Linux; Android 5.0.2; HTC One M8s Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
Samsung: Mozilla/5.0 (Linux; Android 5.0; SAMSUNG SM-G900F Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1 Chrome/34.0.1847.76 Mobile Safari/537.36

Elliotfehr

Re: Getting always false for "

Postby Elliotfehr » Thu Nov 12, 2015 7:53 pm

Hello,

I have tested these User Agents against the WURFL cloud and am unable to replicate this result and have included a simple test with curl below. Are you able to to try testing with caching disabled as well as paste the full output you are receiving back from the WURFL cloud?

Code: Select all

curl -u 123456:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -A 'Mozilla/5.0 (Linux; Android 5.0.2; HTC One M8s Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36' 'http://api.wurflcloud.com/v1/json/search:(is_wireless_device)'

// Output
{
    "apiVersion": "WurflCloud 1.5.0.2",
    "capabilities": {
        "is_wireless_device": true
    },
    "errors": {},
    "id": "htc_one_m8st_ver1_subuanot",
    "mtime": 1445531735
}


Who is online

Users browsing this forum: No registered users and 25 guests