Skip to content

Improve existing browser detection for Tiktok#817

Merged
faisalman merged 2 commits into
faisalman:masterfrom
giantyo26:feat/improve-tiktok
Jan 12, 2026
Merged

Improve existing browser detection for Tiktok#817
faisalman merged 2 commits into
faisalman:masterfrom
giantyo26:feat/improve-tiktok

Conversation

@giantyo26

@giantyo26 giantyo26 commented Dec 30, 2025

Copy link
Copy Markdown
Contributor

Prerequisites

Type of Change

Feature

Description

This PR will improves the detection of Tiktok's WebView user agents
Currently user agent captured from TikTok iOS v43.0.0 (and likely in many recent versions) is detected as Mobile Safari as seen on the Demo below.

Demo:
https://uaparser.dev/?ua=Mozilla/5.0%20(iPhone;%20CPU%20iPhone%20OS%2018_6_2%20like%20Mac%20OS%20X)%20AppleWebKit/605.1.15%20(KHTML,%20like%20Gecko)%20Mobile/15E148%20Safari/604.1%20trill_43.0.0%20BytedanceWebview/d8a21c6#demo
{ "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_6_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Safari/604.1 trill_43.0.0 BytedanceWebview/d8a21c6", "browser": { "name": "Mobile Safari" }, "cpu": {}, "device": { "type": "mobile", "model": "iPhone", "vendor": "Apple" }, "engine": { "name": "WebKit", "version": "605.1.15" }, "os": { "name": "iOS", "version": "18.6.2" } }

Test

  • Added new test case for Tiktok's WebView
  • Ran the full test suite successfully

Impact

No breaking changes and is backwards compatible. This PR only improves the existing Tiktok's WebView detection

Other Info

@giantyo26

Copy link
Copy Markdown
Contributor Author

Hey Mas @faisalman, could you review this when you have a of bit time. Thanks

@faisalman faisalman left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@faisalman
faisalman merged commit 1696b87 into faisalman:master Jan 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants