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

URL not setting in onLoadStart on Ajax webpages #125

Closed
sukhcha-in opened this issue Jul 2, 2019 · 2 comments
Closed

URL not setting in onLoadStart on Ajax webpages #125

sukhcha-in opened this issue Jul 2, 2019 · 2 comments

Comments

@sukhcha-in
Copy link

URL is not setting when site is using Ajax or no reload pages.
Example URL: https://www.flipkart.com/search?q=iphone%20x

Steps to reproduce:

  1. Open above URL in flutter_inappbrowser
  2. Tap on any product (Requires no reload because of ajax)
  3. Check URL, It shows example URL stated above not the opened product URL

Each time i open new product i have to use webController.reload(); to show the correct product URL

Note: To use example URL stated above domStorage must be enabled:

initialOptions: {
  "domStorageEnabled": true,
},

Code:

onLoadStart: (InAppWebViewController controller, String url) {
  setState(() {
    this.url = url;
  });
},
@pichillilorenzo
Copy link
Owner

Added new onNavigationStateChange event in version 2.0.0, which is an event fired when the navigation state of the InAppWebView changes.
Also, this plugin changed its name to flutter_inappwebview. The current latest version now is 2.1.0+1. So, you can change your dependency influtter_inappwebview: ^2.1.0+1.

This was referenced Jul 6, 2020
Copy link

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 and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants