-
Notifications
You must be signed in to change notification settings - Fork 29
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
Mobile browser detection #11
Comments
Is there any update on that? I have the same issue, I need to detect whether the user is in web(Desktop) or web(mobile,tablet) |
I have got around this for the moment by using the platform_detect package. It exposes a touchEvents property, which equates to true when running on Safari/iOS. If Apple releases a laptop with a touchscreen, then I will need to have a rethink! |
The issue is that the entire point of this plugin is that it can not access I'll consider this touchEvents "hack", don't really love it. |
Any update on this? |
You can check the defaultTargetPlatform property on web, it returns |
Everyone, I have created a package for this purpose: Using this package, check for |
With the availability of Flutter 2, it would be hugely beneficial if the package could detect if it was running within a web browser on a mobile OS. Thus allowing users to restrict usage of their web app to desktop and prompting the user to utilize the equivalent mobile app from a Store.
The text was updated successfully, but these errors were encountered: