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

[iOS16] Warning when request App Review on landscape mode #70

Open
soarescaique opened this issue Sep 15, 2022 · 0 comments
Open

[iOS16] Warning when request App Review on landscape mode #70

soarescaique opened this issue Sep 15, 2022 · 0 comments

Comments

@soarescaique
Copy link

soarescaique commented Sep 15, 2022

When opening a native iOS dialog, it will try to open it on portrait mode, but the screen orientation is on landscape mode. It seems like a conflict between orientations will happen. I have never gotten this warning before ( iOS16 lower versions)

Steps to reproduce:(physical device)
1 - Change the orientation of the app. -> SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]);
2 - Then request an app review for your app -> InAppReview.instance.requestReview();
3 - The warning below will be shown.

[Assert] A new orientation transaction token is being requested while a valid one already exists. reason=Fullscreen transition (presenting): fromVC=<UIApplicationRotationFollowingController: 0x11b668f50>; toVC=<SKStoreReviewViewController: 0x11b5cd900>;; windowOrientation=portrait; sceneOrientation=landscapeLeft; existingTransaction=<_UIForcedOrientationTransactionToken: 0x283ee6340; state: committing; originalOrientation: landscapeLeft (4)>

Code example:

@override
  void initState() {
    SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]); 
    InAppReview.instance.requestReview();
    super.initState();
  }
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

2 participants
@soarescaique and others