-
-
Notifications
You must be signed in to change notification settings - Fork 989
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
[Bug]: device_info_plus breaks on build web --release --dart2js-optimization O4 #971
Comments
Just to confirm, this doesn't happen on debug, correct? Does it happen when you remove the dart2js optimization? Does it happen with other levels of optimization? I don't fully know what |
AFAIK, dart2js optimizations can cut off some parts of generated JS code, this can cause problems with DI (google_maps_flutter was optimized-out in release builds for android about year ago, for example) |
Thanks for the info! Just in case, the issue you mention is about Java Proguard optimizations on Android, not the dart2js optimization. |
Facing the same issue. Can't access the browser info in release mode but can in debug mode. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
Facing the same issue. No flags. Just with |
i am also facing the same issue. Can't access the browser info in release mode but can in debug mode. This issue raised in july 2022, its 2 years. Is this issue going to be fixed? |
This is a community effort, there are no companies behind this project, and it is purely voluntary based. Unfortunately, this seems to need special knowledge on the dart2js compiler, which no one in the maintainer team has, so external help is definitely needed. |
Btw, a message says it works with the O2 optimization, so did you try with the If anyone can check the different optimization levels from |
i am doing with flutter build web --web-renderer canvaskit, i am not sure purpose above optimisation |
I ran The app loads correctly. I repeated the same process with I cleaned the project to ensure the build folder was empty, and then run Tested again with If you still have this issue, please provide a repo with that reproduces the error. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
Platform
Web
Plugin
device_info_plus
Version
4.0.1
Flutter SDK
3.1.0-9.0.pre
Steps to reproduce
webBrowserInfo
getter in any wayUnimplementedError
UnimplementedError: webBrowserInfo() has not been implemented.
Code Sample
No response
Logs
The text was updated successfully, but these errors were encountered: