Skip to content

onUrlChanged triggers only when page is fully loaded after redirect #337

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

Open
ahmed-eg opened this issue Feb 28, 2019 · 5 comments
Open

Comments

@ahmed-eg
Copy link

I'm using flutter_webview_plugin to let the user browse the internet searching for an item, and add it to my application (like Pinterest).

I found flutter_webview_plugin has the best browsing experience but the only issue is onUrlChanged not detecting the URL changes instantly, the user has to wait for the page to be fully loaded to get the URL.

And in some cases, the onUrlChanged never fired.

I found another old issue #218 but not sure if it's related. Even tho it's not resolved yet!

@m4tm4t
Copy link

m4tm4t commented Mar 23, 2019

I'm doing same kind of webview app and confirm this on webapps that use javascript routers ( vuejs, angular ), onChangedUrl is not fired

@MadReal
Copy link

MadReal commented May 20, 2019

Same issue here

@charafau
Copy link
Collaborator

Is it only android or ios too? I think it's because we use shouldOverrideUrlLoading method which is not called for javascript.

I'm dropping SO link so it's worth trying to use doUpdateVisitedHistory https://stackoverflow.com/questions/9312499/android-detect-webview-url-change

@Guziq
Copy link

Guziq commented Jun 20, 2019

Can confirm that this issue exists on iOS

@TungWang
Copy link

TungWang commented Apr 23, 2020

i have the same problem on iOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants