108 questions
1 vote
0 answers
636 views
Hydration issue in mobile view in nextjs 14
Getting hydration issue in mobile responsive view once I refresh the page, it works fine on desktop view but as soon as I check in mobile view and refresh it this appears. I'm using Nextjs 14.1.0(SSG) ...
0 votes
0 answers
370 views
Determining the presence of a notch on a device in Flutter
I'm developing a Flutter application and I need to detect whether the device running the app has a notch or not. Is there a reliable way to determine the presence of a notch programmatically in ...
1 vote
0 answers
45 views
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-...
0 votes
0 answers
502 views
Detect if device is connected to a rs232 serial port
i got this project a lil one i would like to use in my job, it would make thinks easier when i'm detecting if a printer is connected, what's the point of this? We have like 26 printers to print ...
3 votes
0 answers
3k views
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 ...
5 votes
2 answers
13k views
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 ...
1 vote
0 answers
4k views
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....
1 vote
1 answer
4k views
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 ...
0 votes
1 answer
39 views
Not able to identify iPad Pro devices by using Javscript
I am trying to identify iPad devices by using various methods in JS. As per the latest research on this, newer versions of iPad Pro behaving same as desktop versions(Same user agent). Since both iPad ...
1 vote
0 answers
5k views
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. ...
1 vote
1 answer
615 views
what happens if I create a file using vim in /dev directory. How the file will be created as the /dev is not standard file system
What happens if I create a file using vim in the /dev directory. How will the file be created as the /dev is not a standard file system. I can see a file being created but standard Kernel file ...
0 votes
1 answer
1k views
How to use the Agent Library at Laravel?
what's up? I'm the last two days trying to use a library of DeviceIndentify, Agent. This is a library based on Mobile Detect, but for LARAVEL. I already read the README.md and searched about how to ...
1 vote
0 answers
52 views
Xamarin UI Test - different element selectors for Phone / Tablet
I am looking at Xamarin UI test as a POC for a native Android and iOS app. Not used Xamarin before or C, so I am bluffing my way through at the moment. I have managed to get it running on the Android ...
-1 votes
1 answer
78 views
How to detect a specific console output?
<script src="https://cdnjs.cloudflare.com/ajax/libs/UAParser.js/0.7.19/ua-parser.min.js"></script> <script> var ua = new UAParser(); var result = ua.getResult(); ...
2 votes
1 answer
4k views
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 ...