I'm writing a webservice which is call'd from a webpage, I need to know if request comes from web or mobile browser including embeded android webview, webservice is c# , svc webservice.
            Asked
            
        
        
            Active
            
        
            Viewed 1,158 times
        
    1 Answers
0
            You can get the calling User-Agent
WebOperationContext.Current.IncomingRequest.Headers["User-Agent"];
And do your check if its mobile or not.
 
    
    
        take
        
- 2,202
- 2
- 19
- 36
- 
                    with regex you mean? it's possible but mabye there is better way. – ali kamrani Oct 10 '16 at 13:15
- 
                    http://stackoverflow.com/questions/11381673/detecting-a-mobile-browser – take Oct 10 '16 at 13:16
 
    