Distinguish between iPad and mac on iPad with iOS 13+ - ios

Since iOS 13 iPads identify themselves as Macs in the user agent.
Unfortunately I have a web service that DOES NOT WORK on an iPad. It is not my service, not my code, and I can't have any detection or redirection done in that service so checking for touch isn't an option. I really need to redirect from .htaccess as any code that runs after that is outside of my control.
Is there any way for me to redirect iPads to a different site without redirecting actual Macs?

Related

iOS blocking HTTPS request

I have a valid SSL certificate, provider DigiCert. No problems.
When I visit my webapp on the iPad I recently found out that some parts was not working properly. Going further debugging, I connected the iPad to the Mac so i could use the web dev tool and found then the following:
I really don't get this? Why does it block these, even analytics and fonts from Google?
I receive no such errors on any other browsers or devices than this new iPad 2 mini.
Testing with an older iPad 2nd gen, it works.
Is the date and time configuration of the ipad right?

iOS: access company internal webapp from native Safari

We have an existing internal web app called http://sexywebapp
The goal is to enable seamless remote access on employee devices to SexyWebApp.
Currently we target native Safari on iOS 8.1+/Android 4.4+.
While we've been able to use Citrix Receiver to get folks using SexyWebApp via Chrome/IE on top of XenApps, it's really clunky. Forcing desktop browsers onto iPhones just isn't going to fly.
Ideally there's a way we could go into iPhone's native Safari and navigate to http://sexywebapp just like we can when physically in the office.
It seems like if we set up a standard VPN this might be possible - any thoughts?
Thanks!
Yes it's certainly possible. If you're looking for a Citrix way of doing this then look at XenMobile and the Worx suite of apps. Citrix WorxWeb is a native browser for your iOS and Android devices. However it uses a micro-VPN to connect into your data-center, allowing you to access internal company web sites.

How to test a web application on an iPad and other tablets without buying them?

Is there a trustworthy way to test iPad compatibility of a web application without buying the device itself? What about other tablets, do they provide any emulators?
If you have a Mac, just register with Apple (for free) and download the iOS SDK. It includes a program called 'iOS Simulator', which you can launch directly without knowing anything about Xcode/etc and includes Mobile Safari just like a real iPad. Since WebKit is exposed to iPad programmers for use in their programs, I'd expect the simulation to render identically to the real thing and, in practise, have never noticed any differences.
The iOS Developer Centre is here. Sadly, I have no experience of other tablets.
This is past mid-2012, now there are plugins or settings for User-Agent that "emulate" the connections for ipad (ios4 & ios5). Well it tricks the server into thinking that it is a different device.
For example, using Chrome, press F12 and click on settings (bottom right) and one of the tabs allows you to emulate the different devices.
safari - http://www.dummies.com/how-to/content/how-to-activate-user-agent-switcher-in-safari.html
FF needs plugin: https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
IE8 - http://www.howtogeek.com/howto/18450/change-the-user-agent-string-in-internet-explorer-8/
IE9/10 - anyone can help?

Protect iPad settings

I am developing a web application to be run in iPad safari. The iPads will be provided to the customers and the question is - I want to allow access only to the safari browser and not other applications that can be found in the iPad, especially the iPad settings. Is there anyway I can do that in iPad?
You are basically talking about turning the iPad into a kiosk, meaning a computer that cannot be controlled locally beyond a subset of chosen functionality. In other words, the user is not in charge. In practice, every iPhone and iPad is a kiosk, because Apple is in charge. The only way to take control away from Apple is to jailbreak the device.
The extent to which Apple is willing to share the reins is the iPhone Configuration Utility which does not allow you to disable settings, although you can disable Safari.

What is a good way to identify iOS device from User Agent?

Do all iOS devices send iPhone, iPad or iPod as part of the User Agent?
Is it a good practice to test for those three strings to identify iOS devices?
Does it work for all browsers including Safari, Firefox, Opera(?), etc?
Using Ruby. I know I can use a gem but don't think it is necessary...
The rendering software for IOS commonly used is AppleWebKit (safari, chrome and firefox).
It is included in user agent.
Some other browser could differ.

Resources