Questions tagged [device-detection]

Device detection is the process of deducing information, such as usable screen width and browser type, about a client device. For web services, device detection is typically performed by way of User-Agent string matching, as a way of tailoring content to different types of devices.

111 questions
0
votes
1 answer

Updating device detection code for Windows 8 mobile devices - phones and Surface X

I have used the attached code to detect mobile devices before but it is not working (for obvious reasons) for Windows 8 mobile phones and any of the Surface versions. I don't know the proper userAgent for Windows 8 mobile phones and Surface. What…
John G
  • 55
  • 1
  • 7
0
votes
1 answer

How to detect mobile device

I am building a mobile site using the ionic framework. I want to detect mobile devices(Android and iOS) with AngularJS (or ionic). If access device is Android → #/android if access device is iOS → #/ios controllers.js function uaCtrl('$scope',…
NANA
  • 5
  • 1
  • 1
  • 3
0
votes
1 answer

How to detect the current device and fire the correct event?

I am trying to detect the current device via jQuery Mobile and fire the correct event. So long so good... The detection works fine but the hover/mouseover/vmouseover event will not work correctly (tap & click works fine) JS: (function(a) { …
Bill Bronson
  • 530
  • 2
  • 9
  • 24
0
votes
0 answers

How to add continue button if device is desktop else redirect page to start with desktop

I am developing a game website.This game only works on desktop.So i decide to know the device type of user. So far i am able to detect the device type. If the user is on mobile then redirect to a page saying start the game in your desktop or…
mdabd
  • 1
  • 1
0
votes
1 answer

What the difference between tablet and laptop with touch screen?

Tablets and laptops with touch-screen have "touch" support. So how we can to detect with help of javascript that it's a laptop but not a tablet? P.S.: I don't need to detect touch device. I need to distinguish laptop with touch screen from a tablet.
0
votes
2 answers

Which technique to hide right column with heavy content?

I'm building a mobile site for a great magazine with a lot of content that is partly heavily. The problem now is that I have to hide the entire right column on the mobile site (yes, I need it in this case). I've done a great research on mobile…
0
votes
2 answers

detecting cordova device on express.js server

Hi I'm new to Cordova aka PhoneGap. I already made an express.js website and trying to build ios and android app using Cordova. thus, there is one website. and there are 3 way(ios app, android app and web browser) to approach that. I want to figure…
Eun Bit Hwang
  • 151
  • 1
  • 9
0
votes
1 answer

Parse apple-touch-icon from mobile websites

With a given url like www.example.com i want to extract the apple touch icon by e.g. searching the dom for this attribute: The Problem is that example.com doesn't provide this tag on the…
Mantsch
  • 43
  • 4
0
votes
1 answer

Servier side and client side device detection

We are having two module of same web application in Servlet/jsp. One for mobile and one for desktop. I want to redirect to mobile version whenever an handheld device hit a desktop version. Since I am having two different context of same application,…
Jafar Ali
  • 1,084
  • 3
  • 16
  • 39
0
votes
1 answer

Detecting Mobile traffic on website

Ok here we go I will try to make this as clear as I can. I have made a website that can be view very clearly with any phone, tablet and, computer; I am about to have an app. What I have been looking for with no luck whatsoever is how can I prompt…
Zeeba
  • 1,124
  • 1
  • 12
  • 14
0
votes
1 answer

Redirect from mobile site to desktop site

I have device detection in place using the following code: This code gets the name of the…
-1
votes
1 answer

Cross-platform C/C++ code to get details on connected iDevices?

I'm working a cross-platform tool written in C++ that will have the ability to detect the deviceid (i.e. iPhone7,1) and iOS version (i.e. 8.1.2) of connected devices, similar to how many jailbreak utilities do. After looking around, I haven't been…