-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
[web] SystemChrome.setPreferredOrientations crashes silently on Safari #67640
Comments
I can reproduce the issue on the latest
|
@TahaTesser Thanks a lot! Did you also test on |
@creativecreatorormaybenot |
@TahaTesser I did not realize there were two channels in the first header, sorry. |
Closing. Will get fix on next dev release. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
beta
channel or later withflutter config --enable-web
.flutter create bug
.main.dart
and add aSystemChrome.setPreferredOrientations
(awaited) call:flutter run -d chrome
the app.Expected results: the app should start on both Chrome and Safari.
Actual results: will start on Chrome but not on Safari. Removing the
SystemChrome
line will fix the issue.JS console (debug mode)
The JS console in Safari will only show the following:
There is nothing else.
Release mode
The behavior is exactly the same in release builds, i.e. Safari does not run the app.
More importantly: this happens silently, i.e. there is nothing displayed in the JS console.
Because of this, it was incredibly difficult for us to find out why our web app was not working on Safari. In addition to that, dart-lang/sdk#43520 did not allow us to even run the app in debug mode initially.
Versions (click to expand)
The text was updated successfully, but these errors were encountered: