Skip to content

Conversation

Totemancer
Copy link

Hello Team,

I’ve prepared a PR to add support for a custom User Agent in MyTonWallet. This allows apps opened via the In-App Browser to detect that the source is MyTonWallet, enabling customized themes, experiences, login pages, etc.

The UA is appended, not replacing the original User Agent but adding an identifier from the app in the format: MyTonWallet/version (theme)

Default UA:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_5_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/138.0.7204.56 Mobile/15E148 Safari/604.1

Results in:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_5_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/138.0.7204.56 Mobile/15E148 Safari/604.1 MyTonWallet/3.8.0 (dark)

This is only applies to Cordova InAppBrowser, which is only used on iOS and Android platforms.

| Previous PR: #258 |

Copy link

netlify bot commented Jun 30, 2025

👷 Deploy request for mytonwallet-tma pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bc2f17f

Copy link

netlify bot commented Jun 30, 2025

👷 Deploy request for mtw-opensource pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bc2f17f

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.

1 participant