Differentiate requests from MobileSafari and SafariViewController

For a web application, is there a way (client or server) for differentiating requests from MobileSafari and SafariViewController (built into any third-party application)?

I need this because SafariViewController does not support universal links and smart application banners, so I would like to show an appropriate alternative in the content.

I checked the HTTP-User-Agent and it is exactly the same for both.

+6
source share
1 answer

Instead of testing for a specific client, you should test the functionality. Check out Modernizr https://modernizr.com/download?setclasses

If you ask the question this way: β€œHow to define universal links and smart application banners”, this will be a more useful question for developing modern web applications than for sniffing specific customers.

-2
source

All Articles