Linked Questions
78 questions linked to/from Detect if device is iOS
2
votes
1
answer
5k
views
How to run jQuery code only if device is iOS based? [duplicate]
Possible Duplicate:
Detect if device is iOS
Here is what I want to do:
<script type="text/javascript">
// Run This code if device is iOS based
window.addEventListener('...
939
votes
47
answers
885k
views
Disable Auto Zoom in Input "Text" tag - Safari on iPhone
I made an HTML page that has an <input> tag with type="text". When I click on it using Safari on iPhone, the page becomes larger (auto zoom). Does anybody know how to disable this?
292
votes
12
answers
388k
views
Detecting iOS / Android Operating system
I've done some research, and this question has come up, but not in the way I intend. I'm building a page for a client that is a QR code landing, which is a place to download an application. So he ...
192
votes
19
answers
160k
views
disable viewport zooming iOS 10+ safari?
I've update my iPhone 6 plus to iOS 10 beta version and just found that in mobile safari, you can zoom any webpages by double tapping or pinching IGNORE the user-scalable=no code in the meta tag. I ...
212
votes
4
answers
307k
views
CSS media query to target only iOS devices [duplicate]
Is there a @media query to target only devices running iOS?
For example:
@media (min-device-width:320px) and (max-device-width:768px) {
#nav {
yada: yada;
}
}
Would this also alter ...
90
votes
16
answers
100k
views
Determine if user navigated from mobile Safari
I have an app, and I'd like to redirect the users to different pages based on where they are navigating from.
If navigating from web clip, do not redirect.
If navigating from mobile Safari, redirect ...
140
votes
6
answers
146k
views
Detect Android phone via Javascript / jQuery
How would i detect that the device in use is an Android for a mobile website?
I need to apply certain css attributes to the Android platform.
Thanks
133
votes
8
answers
216k
views
Download file from an ASP.NET Web API method using AngularJS
In my Angular JS project, I've an <a> anchor tag, which when clicked makes an HTTP GET request to a WebAPI method that returns a file.
Now, I want the file to be downloaded to the user once ...
98
votes
12
answers
83k
views
Safari in ios8 is scrolling screen when fixed elements get focus
In IOS8 Safari there is a new bug with position fixed.
If you focus a textarea that is in a fixed panel, safari will scroll you to the bottom of the page.
This makes all sorts of UIs impossible to ...
116
votes
3
answers
94k
views
What is the list of possible values for navigator.platform as of today? [closed]
I know that this changes quite often, but is there a list as exhaustive as possible out there of the possible values returned by navigator.platform?
List so far:
HP-UX
Linux i686
Linux armv7l
Mac68K
...
91
votes
5
answers
140k
views
What is the iOS 5.0 user agent string?
What is the iOS 5.0 user agent string?
Here is the iOS 4.0 user agent: What is the iPhone 4 user-agent?
49
votes
9
answers
77k
views
Detect iOS version less than 5 with JavaScript
This is related to the "fix" for position:fixed in older versions of iOS. However, if iOS5 or greater is installed, the fix breaks the page.
I know how to detect iOS 5: navigator.userAgent.match(/OS ...
83
votes
9
answers
74k
views
iPhone / iOS : Presenting HTML 5 Keyboard for Postal Codes
There are several tricks for displaying different keyboards on mobile devices for HTML 5 inputs (i.e. <input> tags).
For example, some are documented on Apple's website, Configuring the ...
52
votes
8
answers
79k
views
Redirect users to iTunes app store or google play store?
I'm looking for an easy solution to post one link of my app e.g. on Facebook and it should automatically redirect to the right app store if the user accesses it with a mobile device. Otherwise the ...
38
votes
5
answers
29k
views
Tell iPadOS from macOS on the web
The user agent of Safari on iPadOS beta is at this point exactly the same as Safari on macOS. Is there any other way to tell an iPad from a Mac?
iPad running iOS
Mozilla/5.0 (iPad; CPU OS 10_3_3 like ...