Pierre-Lannoy / wp-device-detector

Full featured analytics reporting and management tool that detects all devices accessing your WordPress site.
https://perfops.one/
GNU General Public License v3.0
4 stars 3 forks source link

Wordpress - Safari (in-app) Detector #1

Closed ernandozatariano closed 1 year ago

ernandozatariano commented 4 years ago

Hi, congratulations for the great wordpress plugin! Device detector helps me to improve my website and my android/ios apps with webview.

I use the Device Detector to apply custom CSS for differents browsers / devices, and works very well! But i missing the dection for Safari (in-app) browsers. This is avaiable? Any prevision?

Tks again for the wonderfull plugin! Best regards!

Pierre-Lannoy commented 4 years ago

Hello @ernandozatariano and thanks for your kind words :) Let me investigate on this to see how it is rendered now and how it should be...

Pierre-Lannoy commented 4 years ago

Hello @ernandozatariano. Could you confirm that by in-app safari, you speak about browsing via apps (like Facebook, or Apple News)?

ernandozatariano commented 4 years ago

Hi! Yes, when you are browsing via apps in iOS, google analytics detect the Safari (in-app) Browser, like in the screenshot below:

01

Many app developers use a function called WebView. With this resource, its possible browser in external urls from an application. In android apps, Google Analytics recognizes that with the name "Android Webview", and Wp-Device-Detector recognizes that with "podd-client-name-chromewebview".

02

When an app developer use the WebView function in iOS, Wp-Device-Detector not recognize Safari (in-app) like a browser.

You can read the official documentation about this function for iOS Developers here:

https://developer.apple.com/documentation/webkit/wkwebview

And maybe this article helps too: https://www.iflutter.in/flutter-webview/

Tks again! Best regards :)