I am getting conflicting results when call the CloudClientManager.GetDeviceInfo() method when specifying GoogleBot UserAgents. The code (.Net) we are using is as follows:
var config = new DefaultCloudClientConfig { ApiKey = ApiKey };
var mgr = new CloudClientManager(config);
var deviceInfo = mgr.GetDeviceInfo(new HttpContextWrapper(HttpContext.Current));
This code is contained within a simple ASPX page from which we get HttpContext.Current.
I am using FireFox with the UserAgentSwitcher plugin to test different agents. I have disabled cookies as per the instructions on your FAQ.
I am testing against the GoogleBot user agents below, taken from http://support.google.com/webmasters/bi ... er=1061943
- Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
- Googlebot/2.1 (+http://www.google.com/bot.html)
- Id: lg_un200_ver1_subuanovarravision
- Capability (mobile_browser): Novarra nWeb
- Capability (is_tablet): False
- Capability (device_os):
- Capability (is_wireless_device): True
- Capability (model_name): UN200
I have tested the same user agents using your tools.scientiamobile.com page and they do return the correct information.
Please can you advise what the problem is as soon as possible as this is causing us serious issues as our site is no longer being indexed by Google, as we automatically direct mobile or wireless devices to a non-indexed mobile version of our site.
Updated
Looking at the DefaultCloudClientConfig settings that appear to be hard coded(?) the API is pointing to staging.wurflcloud.com which might not be helping at all.This is based on the assumption that staging refers to a non-live environment; if this is not the case then what else can this be? There is NO information in any documentation I have seen that indicates that this is the case, not how to correct this.
Thanks,
Simon Masterton
smasterton@medicines.org.uk
On behalf of Alan Henderson