Roboin Blog

X in-app browser user agent strings in 2026

Webブラウザーを抽象的に表現した3D CG

X introduced a new in-app browser on iOS and Android that lets you keep the Like, Repost, and other buttons at the bottom of the screen while you open a link.

I checked the user agent strings after X introduced this new in-app browser and wanted to share the results. The information in this article is current as of September 2026.

Advertisement

Android

On a Google Pixel 8 running Android 17, I saw the following user agent string:

Mozilla/5.0 (Linux; Android 17; Pixel 8 Build/CP31.260623.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.202 Mobile Safari/537.36 TwitterAndroid/12.28.0-alpha.01 (312280201-r-01) Pixel+8/17 (Google;Pixel+8;google;shiba_beta;0;;1;2015)

If you need to detect whether someone is using X’s in-app browser on Android, checking whether the user agent string contains TwitterAndroid should be enough, since the string also contains details such as the device OS.

iOS

I do not own an iOS device, so I inferred the user agent string for X’s iOS in-app browser from my logs.

Mozilla/5.0 (iPhone; CPU iPhone OS 27_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/24A437 Twitter for iPhone/12.26

If you need to detect whether someone is using X’s in-app browser on iOS, checking whether the user agent string contains Twitter for iPhone should be enough.

Conclusion

I found it curious that X’s iOS app uses Twitter for iPhone in its in-app browser user agent string, while the Android app does not use Twitter for Android.

Advertisement

You should be able to identify X’s in-app browser by checking whether the user agent string contains either TwitterAndroid or Twitter for iPhone.

Share this article

Follow us for updates

Adding us to your preferred sources on Google makes it easier to find our articles on Google. Also, be sure to follow us on X and our RSS feed.

Add as a preferred source on GoogleAdd as a preferred source on Google
著者のアイコン画像

I've been using JavaScript more than my native language since birth. I am nowhere and everywhere on the internet.

I build web apps and browser extensions in TypeScript as a web frontend programmer. I released Shadowban Scanner, a tool that detects shadowbans on X, and Restore Link Card, a tool that brings back link cards. Media outlets in Japan and abroad covered both tools. For iGEM 2023, I built the Wiki for Team Japan-United and helped the team win the Grand Prize. On my blog, I cover news about X and social media, test and troubleshoot bugs, and share frontend development insights.