metamask-mobile
metamask-mobile copied to clipboard
Add user agent from Webview property as default in HTTP interceptor (Android)
Description
The userAgent property provided in the Webview component on Android isn't being properly set in the interceptor, now it should use the provided property value and fallback to the device user agent when this property is not defined.
Screenshots/Recordings
With userAgent property defined in WebView:

Without userAgent property in WebView:

Related slack thread: https://consensys.slack.com/archives/CBW7S9FSN/p1659995161910989
Issue
Progresses #4829
Checklist
- [ ] There is a related GitHub issue
- [ ] Tests are included if applicable
- [ ] Any added code is fully documented
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.
This is working as expected for the on-ramp requirements 👍