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

DisplayMode doesn't change to mobile view when controller action contains view path

I'm trying to implement device specific views in a ASP.NET MVC application, as described e.g. here: https://www.simple-talk.com/dotnet/asp-net/multiple-views-and-displaymode-providers-in-asp-net-mvc-4/ or here: …
Yiangos
  • 267
  • 2
  • 10
0
votes
0 answers

How can I raise an event when a new item is added to Devices and Printers?

Background: I'm using a third-party library to read a smart card used as an ID card. This library only supports a method to read the card. It doesn't throw events when the card is inserted into the reader. As a result, currently, I can only…
Zesty
  • 2,922
  • 9
  • 38
  • 69
0
votes
1 answer

User Agent String and Device Detection

I was reading documentation on some bad practices when building a website. The MDN said this is very old and a bad practice but there are certain cases in which it is acceptable. Such as device…
0
votes
0 answers

how to detect from user-agent whether the request is coming from android-app or android-browser

User-Agent for iPhone Browser Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7 User-Agent for iPhone App Mozilla/5.0 (iPhone; U; CPU iPhone OS…
snow man
  • 11
  • 1
  • 1
0
votes
1 answer

Global.asax device detection with 51 degrees cloud API

Can anyone help? I want to use the free service from 51Degrees not the Lite version however the Cloud API (https://51degrees.com/compare-data-options). I am trying to set my Global.asax to have a display mode for "tablet" and "mobile" so I can use:…
0
votes
0 answers

HTML5 video not displaying on iPad Pro landscape

I have a problem with a HTML5
Tristan
  • 215
  • 1
  • 2
  • 11
0
votes
1 answer

Why isn't this video showing on iPad Pro landscape?

I have a standard HTML5
0
votes
1 answer

html div with max size

I have a simple web page containg a single div element holding a leaflet map, and some javascript code. On mobile devices, I'd like the div element to fill the entire screen. But, on larger screens such as PC screens, I'd like the div element to…
user29809
  • 85
  • 7
0
votes
2 answers

How to detect tablet device in AngluarJS with deviceDetector module?

The problem is with a Samsung Tablet. I want to show some stuff if device is a cellphone, but not in a tablet. Device detector show: - isMobile(): true - isTablet(): false This is the complete data from module: {"raw":{"userAgent":"Mozilla/5.0…
0
votes
1 answer

Detecting “Tablet/Touch Mode” in Edge using JavaScript on Windows 10?

This question was asked before, but the answers are not exactly what I need. I need to distinguish in Microsoft Edge if it's a tablet or not (Desktop). 1) The following thread: Can you detect "Tablet Mode" in Edge and IE11 using JavaScript on…
0
votes
1 answer

Loading different CSS for mobile phones (but not for tablets)

I need to load different CSS stylesheet for mobile phones, but not for tablets. I was using the following solutions in the past:
Piotr Ciszewski
  • 1,691
  • 4
  • 30
  • 53
0
votes
0 answers

How to detect a phablet from client or server side

I'm currently using LiteDeviceResolver to detect the device used by a customer on a website developed in Java. It works well to differenciate mobile from desktop. However, now I need to detect phablet. Currently phablet are considered as desktop…
alain.janinm
  • 19,951
  • 10
  • 65
  • 112
0
votes
1 answer

Controller Action Based on Media Query (Rails)

I have a specialized dashboard for my Rails application that is shown to users using a media query. I'd like to have devise redirect users on mobile devices (through media queries) to that specific dashboard upon sign in. What's a good way to get…
0
votes
1 answer

Device detection tablet in JavaScript

Can anyone please help me know how to display a p tag say "Hello" only in a tablet device and not when the screen size is 768 in desktop? Is it possible to do it in Javascript without any Jquery?
Ramlakshmi
  • 9
  • 1
  • 2
0
votes
1 answer

How can I detect the device running my application with React Native?

I would like to use different styles depending on the device running an iOS application. How could I detect which device is running the application?
Th. Ma.
  • 9,432
  • 5
  • 31
  • 46