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

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.

Related

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.

why is the user agent string got changed?

I'm having a problem debugging my application. In my app I need to decide if a user is on a mobile device or not base on the user agent string.
From the log info, at the beginning I saw the user agent is "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1", which should be Safari 11 on iOS 11. Then several minutes later the user agent info changed to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15", which should be Safari 11.1 on macOS (High Sierra). From tealeaf I saw the user didn't change browser or device.
So my questions are:
Is it possible for the user agent string changing without changing browser and device? When?
For my case, why it happens?
What's the most robust way to decide if a user is on mobile/tablet or desktop?
thanks.
YES. It it entirely possible to manipulate the user agent string without changing browser or device. It's possible (and quite trivial) to spoof it entirely, such as with User Agent Switcher for Chrome. Having said that, the vast majority of users won't go to the extent of spoofing it.
Considering the User Agent strings thinks the browser is the same, but not the Operating System... I would assume that the user has turned on the Device Toolbar and enabled Responsive Mode in the F12 Developer Tools. This allows you to simulate the display of a website in a different aspect ratio, and does indeed manipulate the User Agent string when you select one of the available devices.
It depends on what exactly you're trying to do. If you're looking for different logic based on device, I would recommend a regex. There's some great examples for different programming languages at DetectMobileBrowsers. If you're looking for a different display however, I would recommend media queries. You can cater for the width, pixel ratio and even orientation of a device. There's a great list of common queries at CSS Tricks.

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).

Bring back mobile version of website in WebBrowser control for wp7?

Is it possible to bring back web pages in a mobile format, if available, before showing the normal rendering of a web page? I noticed I was getting both when I used it. Or is this enabled by default?
EDIT: For example in ie on the phone you can request to recieve webpages in a mobile version or desktop version. Is this option available to developers and if not what is the default for the control?
Sadly, there's no API for toggling this setting - and no easy way to intercept the outgoing HTTP calls from the browser control.
Looking at some output from the emulator it looks like the mobile/full setting toggles this in the User-Agent:
Mobile -
Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+Phone+OS+7.0;+Trident/3.1;+IEMobile/7.0;+Microsoft;+XDeviceEmulator)
Desktop -
Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+XBLWP7;+ZuneWP7)
Here also are some mobile agents captured "in the wild" - http://www.elucidsoft.com/blog/2010/11/19/windows-phone-7-user-agents/
It looks like this settings is a global setting for the OS - so whatever the user chooses in the browser settings is also used in your app (I think this is what I just saw).
I had this problem for a very, very long time and I finally figured it out with the following:
string header =
"User-Agent:Mozilla/5.0 (iPhone; U;
CPU iPhone OS 4_1 like Mac OS X;
en-us) AppleWebKit/532.9 (KHTML, like
Gecko) Version/4.0.5 Mobile/8B117
Safari/6531.22.7";
MyWebBrowser.Navigate(new
Uri("http://www.google.com"), null,
header);
The following header DID NOT work for me (on the gmail website):
Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+Phone+OS+7.0;+Trident/3.1;+IEMobile/7.0;+Microsoft;+XDeviceEmulator)
The WebBrowser control does not expose an API that enables you to choose between the Desktop or the Mobile version of a web page. You could use Fiddler to trap the traffic for outgoing requests (from the emulator or a device) to see if there's anything in particular about the request that you might be able to replicate in yoru own requests.

How can I get the actual culture name from an iPhone web app?

CLARIFIED: This is a JavaScript Web Application not a Native Object-C application.
I have a web application running on the iPhone that I need to globalize.
I've configured Settings->General->International->Region Format to "United Kingdon" and left Language as "English".
Upon inspection of the User Agent string I'm seeing the following:
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Mobile/8A293
I would expect to en-GB but I'm seeing en-us.
I've even tried restarting the iPhone and it remains en-us.
From what I understand, the language portion comes from set type of your iPhone's "Language" (e.g. menus and buttons in the user interface) and not the Region Format.
source
I believe you should use NSUserDefaults to get that information
ChoosingLocalizations
It would appear as if the iPhone browser does not look at the region being set by the settings on the device.
The user agent and navigator.language both return en-US and disregard any changes to the region by the user.

Resources