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.
Questions tagged [device-detection]
111 questions
5
votes
0 answers
Warning: debug info can be unavailable. Please close other application using ADB: Monitor, DDMS, Eclipse . ANDROID STUDIO
I am getting the warning and Android Studio stops and keeps on processing but does nothing. I have attached my Samsung phone (KITKAT) but it does not show up anything at all.
I am getting the following WARNING message
Warning: debug info can be…

Fazal
- 3,374
- 1
- 15
- 20
5
votes
3 answers
A check in JavaScript that returns whether I am on a smartphone?
I want to perform a check in one of my JavaScript functions that determines whether I am on a smartphone and then decide whether or not to run the function based on the results.
What is the best way to detect/check for a smartphone (or handheld…

Dave Haigh
- 4,369
- 5
- 34
- 56
4
votes
1 answer
How can I detect browser details in NestJs/NodeJs
I am trying to integrate device-detector npm module in my application in order to detect the browser details. For that I am using this module npm i device-detector-js
I have integrated as it is code snippet in my code.
Below is my…

Digvijay
- 2,887
- 3
- 36
- 86
4
votes
1 answer
Call to a member function get() on null "Symfony Php"
I'am trying to get details of devices who access our application. I have integrated "MobileDetectBundle" bundle in php symfony 3.4 version and followed the steps provided in the documentation. But I am getting the following error at this line…

Kiran Kumar
- 167
- 1
- 2
- 13
4
votes
4 answers
Detecting mobile browsers on the web?
I'm curious to know how to check for iPhone, iPad and other mobile browsers.(JavaScript or CSS)
Edit:
Not user agent string, please. That can be faked.
Possible Dupes:
Auto detect mobile browser (via user-agent?) and
Standard way to detect…

Moshe
- 57,511
- 78
- 272
- 425
4
votes
4 answers
How to recognize whether a web site is opened in a mobile or a PC
We have a site developed in PHP. It is working just fine. We have used JQuery for every kind of situation like slide shows, menus, etc.
This site contains a lot of images which are large in size. because of this when viewed in a mobile phone user…

Yogi Yang 007
- 5,147
- 10
- 56
- 77
4
votes
3 answers
Detecting a retina display iPad with javascript
I'm having a problem detecting a retina iPad (and similar devices) using just screen.availWidth and window.devicePixelRatio. The problem is that iPhones and iPads give the number of dips for screen.availWidth whereas android devices seem to report…

wheresrhys
- 22,558
- 19
- 94
- 162
4
votes
2 answers
how to identify if user agent is windows 8 tablet?
I have a web application. I my JavaScript, I am identifying devices by user agent string as follows:
_android = navigator.userAgent.toLowerCase().indexOf("android");
_iOS = navigator.platform.indexOf("iPhone");
My task is to identify if device is…

hrishikeshp19
- 8,838
- 26
- 78
- 141
3
votes
2 answers
Is there a way to detect 3G and 2G connections speed on mobile phones and handheld devices?
Is there a way to detect 3G and 2G connections on mobile phones and handheld devices?
Like If I want to deliver High-end Website when user is on 3G and Highly optimized version if user is on 2G.

Jitendra Vyas
- 148,487
- 229
- 573
- 852
3
votes
1 answer
Detecting the device type when an angular universal app pre-rendered on the server
I'm using ngx-device-detector library for detecting the device type (mobile, tablet or desktop).
This library working perfectly in client mode but can't detect the device type when an angular universal application pre-rendered on the server(after…

Kamran Taghaddos
- 452
- 1
- 10
- 22
3
votes
1 answer
Change web page content if user is on a mobile device
I have a link on a website that opens an iFrame in a popup box using jQuery. The jQuery script applies this function only to the link that has the specific attribute 'id=calcPop' as you can see here below.

Brandon
- 33
- 1
- 4
3
votes
0 answers
How to detect mobile device (android or iOS) with AMP
I am trying to display different content based on the users device. One button for android devices another button for iOS devices. I found a bit of an answer using req.headers["user-agent"] but I do not know how to implement that solution.

user1293
- 31
- 2
3
votes
1 answer
how to use ionic.Platform
I'm very new to using ionic/AngularJS and I was wondering how exactly to use ionic.Platform to print the current device. Right now I have
var currentPlatform = ionic.Platform.platform();
in my main.html ctrl. Is there a way to send it to the…

Ph33ly
- 663
- 3
- 13
- 29
3
votes
1 answer
iPad vs iPad Mini User Agent
We're doing some server side device detection and need to drive ipad mini users to one page and ipad users to another.
Is there any thing that differentiates the two user agents?
iPad
Mozilla/5.0 (iPad; CPU OS 7_0_3 like Mac OS X)…

HjalmarCarlson
- 868
- 2
- 17
- 34
3
votes
1 answer
Direct only mobile devices not tablets
I have this line of code which detects all touch devices:
I just want modify it so that it ONLY targets touch enabled mobile devices but also excludes tablet devices.…

egr103
- 3,858
- 15
- 68
- 119