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
2
votes
1 answer
parallel development for desktop and mobile web with server-side device detection
I'm developing a website and want to provide a mobile and desktop friendly experience to the user.
Coming from base html5/css/js development, I know enough css tricks, mobile first techniques, liquid layouts and media queries to get along fine but…

All Bits Equal
- 731
- 2
- 10
- 26
2
votes
1 answer
Nuxt Device Detection with Generate
I installed nuxtjs/device and in localhost it works well and I get what I wanted with ctx.isMobile. But I use nuxt generate and when I deploy my app. it doesnt work. So for this module to work must there be a server? or is there a way to detect…

user10877669498464651468548513
- 175
- 1
- 10
2
votes
1 answer
Possibility that a bundle is not detected in a Symfony project?
I work on Symfony 2.3 and I installed MobileDetectBundle that works on this symfony version:
(in my composer.json)"suncat/mobile-detect-bundle": "0.10.3"
(in packagist)https://packagist.org/packages/suncat/mobile-detect-bundle#v0.10.3
I configured…

chicken burger
- 774
- 2
- 12
- 32
2
votes
1 answer
Detect the display resolution
I need the help from people detecting the display resolution of a device using PHP.
My code is in trouble when switching interface I have the following code:
$_page="home";
if(get('page'))
$_page=strtolower(get('page'));
// Check if larger…

user3463111
- 21
- 1
- 1
- 2
2
votes
2 answers
Cross device web application with ASP.NET MVC
I am currently working on an ASP.NET MVC webshop that must be optimized for mobile devices, especially tablets and smartphones. This is for our client at work, but I am doing a little research on ASP.NET MVC Device Detection at home. I created a…

avb
- 1,558
- 1
- 14
- 37
2
votes
3 answers
Determining Smartphone / Non-Smartphone for php
It seems like facebook has this mastered, I've checked a bit into WURFL but this seems like an extremely expensive process. I've also checked out: url link. While it has a good list of user agents, I'm trying to identify which are smart phones and…

Petrogad
- 4,405
- 5
- 38
- 77
2
votes
2 answers
Implementing DisplayMode
I am currently working with mvc 4 and interested in implementing the DisplayModes feature which sniffs the browsers accessing the site and renders an appropriate view based upon the browser/device.
For example, code to check for iphone and render…

amateur
- 43,371
- 65
- 192
- 320
2
votes
4 answers
How to detect touch device browsers vs desktop using javascript?
What is the code to detect touch devices (smartphones and tablets) vs desktops browsers using userAgent.match and return a boolean variable (for example 'isipad')?
I need to test this against Android and Apple devices mainly. If the device browser…

Alex
- 21
- 1
- 1
- 3
2
votes
2 answers
How to find out the mobile model using WAP page
I am planning on making a WAP page to provide a software.
Now i need to find out what mobile phone model the client who logs into my webpage is using so that i can redirect him/her to the appropriate download link.
This is similar to what opera does…
Avinash
1
vote
2 answers
Detecting SmartPhones Not Tablets
I'm creating a mobile version of a website, but only for smartphones. If the device is a tablet, notebook, netbook, desktop, or whatever similar device, I want the user to automatically go to the full site. If it was simple CSS, I would know how…

user1100412
- 699
- 1
- 10
- 22
1
vote
0 answers
How can we create a system in PHP such that a user can login only through the machine he has registered?
How can a specific device be allowed to access and log in?
I want my users to be able to log in only with the device they have already authenticated.
Of course, I don't mean using session (non-expiring cookie) because it will be lost after some time…

Omid
- 11
- 2
1
vote
0 answers
How to Detect Device Type without Spring-Mobile
I know there are multiple questions asked like that but I have tried all of their solutions and none of them worked for me.
Before now, we were using Spring-Mobile for detection of Device that is requesting from the browser. But because its support…

Eatsam ul haq
- 317
- 1
- 12
1
vote
0 answers
JavaScript detect mobile device type with UserAgentData API
I'm using UserAgentData browser API to detect whether user has visited my page from mobile device or not. In browsers which supports it, it is quite simple and works well:
const isMobile = window.navigator.userAgentData?.mobile
Problem is that if…

Furman
- 2,017
- 3
- 25
- 43
1
vote
1 answer
Next.js react-device-detect Warning : Text content did not match server
This error happens when using the isMobile property from the react-device-detect library for conditional rendering.
To get to this error, I created a new next app using npx create-next-app, then installed the react-device-detect package with npm.…

Drakalex
- 1,488
- 3
- 19
- 39
1
vote
0 answers
Get User Agent in getStaticProps in NextJs
I am using react-device-detect package to detect whether the request is from a mobile or desktop device, it uses user agent of course to do that.
In my NextJS project I want to use it on SSG pages.
Imported the package
import { isMobile, getUA,…

Deepak Kamat
- 1,880
- 4
- 23
- 38