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

Navigation is not storing browser history #3045

Open
naveenbharadwaj19 opened this issue Mar 2, 2024 · 5 comments
Open

Navigation is not storing browser history #3045

naveenbharadwaj19 opened this issue Mar 2, 2024 · 5 comments
Assignees

Comments

@naveenbharadwaj19
Copy link

I've been using GetX navigation for my web app. Previously, it was working fine, but for the past few days, I noticed that clicking the back arrow in my browser exits the whole app. The navigation stack is behaving in a different way. I am using Get version 4.6.1.

flutter doctor -v
[!] Flutter (Channel stable, 3.10.0, on Microsoft Windows [Version 10.0.19045.4046], locale en-IN)
    • Flutter version 3.10.0 on channel stable at C:\Users\bhara\fvm\default
    ! Warning: `flutter` on your path resolves to C:\Users\bhara\fvm\versions\3.10.0\bin\flutter, which is not inside
      your current Flutter SDK checkout at C:\Users\bhara\fvm\default. Consider adding C:\Users\bhara\fvm\default\bin to
      the front of your path.
    ! Warning: `dart` on your path resolves to C:\Users\bhara\fvm\versions\3.10.0\bin\dart, which is not inside your
      current Flutter SDK checkout at C:\Users\bhara\fvm\default. Consider adding C:\Users\bhara\fvm\default\bin to the
      front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (10 months ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
      to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at D:\Android_SDK
    • Platform android-UpsideDownCake, build-tools 33.0.2
    • ANDROID_HOME = D:\Android_SDK
    • Java binary at: D:\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.2)
    • Android Studio at D:\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[√] IntelliJ IDEA Community Edition (version 2023.1)
    • IntelliJ at D:\IntelliJ IDEA
    • Flutter plugin version 73.0.4
    • Dart plugin version 231.8109.91

[√] VS Code (version 1.66.2)
    • VS Code at C:\Users\bhara\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.40.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.4046]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 122.0.6261.95
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 119.0.2151.97

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.
@AlfredoEscalona
Copy link

Same problem, with previos version of chrome mi flutter web app, worked fine, but i realice an update of google chrome and the problem began.

some body helpme please

@pitcairn1987
Copy link

The same problem for me. It occurs on Edge also.

@jonataslaw
Copy link
Owner

Have you already tried version 5? This may be a problem because version 4 uses navigator1

@pitcairn1987
Copy link

pitcairn1987 commented Apr 4, 2024

Yes. Now I've tried on GetX 5 and it's working better, but have some problems now with not refreshing pages when I come again to some page:

  1. Click on 1st item on List in HomePage- going to DetailsPage with id parameter: 1
  2. Going back to HomePage
  3. Click on 2nd item on List in HomePage- DetailPage is opened but again with parameter: 1.

This version has another issues also (PopScope and WillPopScope don't work) so for now is little bit useless for me
Version 4 worked fine until some update from Chrome.
I tried on this version Chrome (from 2022) : https://www.slimjet.com/chrome/download-chrome.php?file=files%2F104.0.5112.102%2FChromeStandaloneSetup.exe
and it's worked fine with version 4. When I updated to newest immediately stop working fine.

Of course all of this problems I noticed only on Flutter Web

@pitcairn1987
Copy link

Hi @jonataslaw . In the newest ^5.0.0-release-candidate-6 version
it works definitely better - no problems except PopScope - still don't work in Flutter Web

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

4 participants