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 for detecting Android and iOS, and browsers on those platforms #41

Open
kankaristo opened this issue Sep 18, 2019 · 2 comments
Open

Comments

@kankaristo
Copy link

Not sure if this is outside of the scope of this package, but it would be useful for us to detect Android and iOS as platforms, and which browser (Chrome, Safari, Firefox, Samsung's default browser, etc.) is used on those platforms.

For example, iOS doesn't support WebRTC on any other browser than Safari (all other browsers on iOS have to use WebView in their implementations, and it doesn't support WebRTC). So, being able to detect that the platform is iOS, and the browser is not Safari, we could tell the user to use Safari, if WebRTC support is required.

We're currently using a JavaScript library called Bowser, but being able to do these checks in "native" Dart would be very useful.

@twisstosin
Copy link

Hmm, is this repo still being maintained @greglittlefield-wf ? this would be a great improvement.

@coastalgit
Copy link

I also upvote this request. I have a flutter web app that I want only accessible from a desktop brower, but from a mobile browser I wish to create an automatic redirect to stores for the equivalent mobile app.

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

No branches or pull requests

3 participants