How to detect Android 4.0 native browser? - user-agent

Default user agent on Android v4 is :
Mozzila/5.0 (x11;linux x86_64) Applewebkit/534.24(KHTML, like Gecko)
Chrome/11.0.696.34 Safari/534.24
How to detect it with php, but only on mobile devices?

Related

Microsoft teams user agent

Anyone know the name of user agent used by Microsoft Teams to parsing website ?
A customer put a link of my website on his microsoft teams but link is not rendering correctly because is not redirect to my prerender.
On 13 January 2022, the User-Agent strings of the browser used to render Teams Tab content were as follows (running in a small sample of various contexts):
Microsoft Teams (work or school) desktop app my x64 Windows 11 machine:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Teams/1.4.00.32771 Chrome/85.0.4183.121 Electron/10.4.7 Safari/537.36
Teams Android App:
Mozilla/5.0 (Linux; Android 11; M2102J20SG Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.70 Mobile Safari/537.36 TeamsMobile-Android
Teams Web App running in Chrome 97 on Windows:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
I got these by creating a simple tab app that loaded the content URL https://www.httpbin.org/headers, which is a public service that just echoes the request headers in the response, then navigating to that Tab in Teams in the various contexts above.
Long story short: As is often the case with user-agent sniffing, it doesn't seem sensible here to depend on the user agent string in your application in any way, because it varies quite a lot depending on the Teams context from which the request is made. Even if you were to try to match "Teams" or "TeamsMobile" for the "app" cases, it doesn't seem documented anywhere and Microsoft could well change it in future. So, my suggestion is to forget about the Microsoft Teams user agent.
I also had this question because I wanted to block link unfurling from MS Teams for an app I was developing.
I used the following line from in a Flask app
request.user_agent.string
To get this user agent
Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5
This was January 2020 so it may change over time, FYI
I suggest you can find it easily. Develop a tiny website to record user-agent of all requests. Post the url of your website in teams. Then you can find it in the recorded user-agents.

What ios application uses a user-agent containing `GmmClient:google_ios`?

I've seen in the logs of my site the following user agent:
Mozilla/5.0 (iPhone; U; CPU iPhone OS 12.4.1; en_US; ) AppleWebKit/0.0 (KHTML, like Gecko) Version/0.0; GmmClient:google_ios/com.google.Maps/5.27.8/Mobile/ios:iPhone10,3/iOS-AppStore
What app can be generating this traffic?
The part GmmClient:google_ios/com.google.Maps/5.27.8/Mobile/ios probably indicates that traffic is generated from Google Maps for iOS, when THe website is opened in a webview inside this app.
But I can't find any documentation referencing GmmClient so I can't confirm it.

How to find the user agent string for LinkedIn app browser from iOS

What is the user-agent string added when we open LinkedIn app from an IOS mobile. I want to detect LinkedIn app from IOS using user-agent string, is that achievable. Are there unique user-agent strings for different devices for LinkedIn app
It doesn't seem like LinkedIn has a specific user agent string for the app browser.
From using udger (opening an udger link from LinkedIn Messages on native mobile App for iPhone) I got the following:
Mozilla/5.0 (iPhone; CPU iPhone OS 9_2_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13D15
Which differs heavily from one you get from the FB browser which looks like this:
Mozilla/5.0 (iPad; U; CPU iPhone OS 5_1_1 like Mac OS X; en_US) AppleWebKit (KHTML, like Gecko) Mobile [FBAN/FBForIPhone;FBAV/4.1.1;FBBV/4110.0;FBDV/iPad2,1;FBMD/iPad;FBSN/iPhone OS;FBSV/5.1.1;FBSS/1; FBCR/;FBID/tablet;FBLC/en_US;FBSF/1.0]
The main difference being the Mobile/13D15, but unfortunately that has no correlation with LinkedIn, but only with the Mobile Build number.
If you've gotten any new progress on this issue feel free to reply!
We have been in the situation where we needed to quickly find the UAs for facebook, Twitter and other apps that use webviews on iOS.
We ended up using a service on udger.com
This gives you the string quickly if you open the site in the service. (send yourself a facebook message with the link or something like that.)
I am sure that there are multiple other services like udger, but that was the one we ended up on.

What is the user agent string for facebook app from android

What is the user-agent string added when we open facebook app from an android mobile. I want to detect facebook app from android OS using user-agent string, is that achievable. Are there unique user-agent strings for different devices for facebook app
Obligatory disclaimer: user-agent strings are usually the wrong answer. They change, they're inconsistent, it's a brittle way to detect anything.
That said, testing on a Samsung Galaxy S5, with a freshly installed FB app as of today, I got:
Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.121 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/35.0.0.48.273;]
The parts with 'FB' specifially seem to be Facebook information. I'd guess that:
FB_IAB: Facebook In-App Browser (followed by a version)
FBAV: Facebook App Version (followed by a version)
The FBAV is shared with the iOS user-agent string as found here: http://mpulp.mobi/2012/01/funky-user-agent-on-facebook-iphone-app/
Mozilla/5.0 (Linux; Android 7.1.1; Build/LMY47O.H18; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/58.0.3029.83 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/127.0.0.22.69;]
Mozilla/5.0 (Linux; Android 7.0; SM-G930F Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/58.0.3029.83 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/127.0.0.22.69;]
Mozilla/5.0 (Linux; Android 7.0; MHA-L29 Build/HUAWEIMHA-L29; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/58.0.3029.83 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/127.0.0.22.69;]
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 [FBAN/FBIOS;FBAV/96.0.0.45.70;FBBV/60548545;FBDV/iPhone7,2;FBMD/iPhone;FBSN/iOS;FBSV/10.3.2;FBSS/2;FBCR/E-Plus;FBID/phone;FBLC/de_DE;FBOP/5;FBRV/0]
Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14C92 [FBAN/FBIOS;FBAV/90.0.0.51.69;FBBV/56254015;FBDV/iPhone6,2;FBMD/iPhone;FBSN/iOS;FBSV/10.2;FBSS/2;FBCR/1&1;FBID/phone;FBLC/de_DE;FBOP/5;FBRV/0]
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 [FBAN/FBIOS;FBAV/96.0.0.45.70;FBBV/60548545;FBDV/iPhone8,1;FBMD/iPhone;FBSN/iOS;FBSV/10.3.2;FBSS/2;FBCR/o2-de;FBID/phone;FBLC/de_DE;FBOP/5;FBRV/0]
Mozilla/5.0 (Linux; Android 4.4.4; G7-L01 Build/HuaweiG7-L01) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/MESSENGER;FBAV/121.0.0.15.70;]
Reference

i want to view something in the internet, how can i do it?

i want to view something in the internet, how can i do it?
Thanks
If all else fails, route your WLAN over a box on which you install a network sniffer. Dump the HTTP traffic. That's the last resort solution, but for sure works.
Generally user agent sniffing is the only method used to detect iPhones. You can use the develop menu in Safari to change your user agent string. An example iPhone user agent string is
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5
Alternatively, you can add a bookmarklet by Shaun Inman to Mobile Safari that allows you to view source code on your device (or just visit the page directly).

Resources