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"));
}
}
}
Thanks,
Gyula