asp.net mvc - Different Request.Browser values on deployed app -


i'm working on mvc4 application, , 1 of tasks i've had detect browser/device request sent. naturally, used mvc's request.browser object this:

var browser = request.browser.browser; var devicemanufacturer = request.browser.mobiledevicemanufacturer.tolower() != "unknown" ? request.browser.mobiledevicemanufacturer : "desktop"; var devicemodel = request.browser.mobiledevicemodel.tolower() != "unknown" ? request.browser.mobiledevicemodel : "desktop"; 

however, seems when making request localhost ie, correct browser shown in 'browser' property. however, when making request deployed app, instead of saying 'internetexplorer', browser property set 'mozilla'.

another issue related devices seem detected iphones , ipads, although our qa told tested kindle fire, android devices well. i'm not sure user-agent in cases update question find out.

any appreciated


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -