Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support iOS WKWebView embedded browser #1528

Closed
1 task done
innomatics opened this issue Dec 11, 2023 · 1 comment
Closed
1 task done

Support iOS WKWebView embedded browser #1528

innomatics opened this issue Dec 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@innomatics
Copy link
Contributor

Would you like to work on this feature?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

What problem are you trying to solve?

The current iOS or ios_saf queries don't seem to recognise the embedded browser in a native iOS app using WKWebView component.

User agents from these embedded browsers are something like:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Mobile/15E148

c.f. a regular iOS Safari user agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Mobile/15E148 Safari/604.1

So the web view browser user agent string is truncated in comparison, and missing the Safari/.* part at the end.

Describe the solution you'd like

It would be useful to allow the webview with ios version e.g. support a query in browserslist like:

ios_app >= 17

Describe alternatives you've considered

No response

Documentation, Adoption, Migration Strategy

Update the documentation the main browserslist repo.

@innomatics
Copy link
Contributor Author

Problem doesn't seem to be in this repo... moving along

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant