You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EArminjon
changed the title
loadUrl didn't trigger
loadUrl didn't trigger again shouldOverrideUrlLoading
Dec 3, 2024
EArminjon
changed the title
loadUrl didn't trigger again shouldOverrideUrlLoading
loadUrl didn't trigger again shouldOverrideUrlLoading on Android
Dec 3, 2024
I think it's the expected behavior of both Android and iOS. Android won't call shouldOverrideUrlLoading for the request open with loadUrl, but iOS will call webView(_:decidePolicyFor:decisionHandler:). The official flutter webview does the same too. flutter/flutter#39441 (comment)
Is there an existing issue for this?
Current Behavior
On iOS :
Redirecting using loadUrl:
Url is intercepted and the snackbar is well displayed
Redirecting using JS:
Url is intercepted and the snackbar is well displayed
On Android :
Redirecting using loadUrl:
Url is not intercepted and the snackbar not displayed
Redirecting using JS:
Url is intercepted and the snackbar is well displayed
Expected Behavior
On iOS :
Redirecting using loadUrl:
Url should be intercepted and the snackbar should well displayed
Redirecting using JS:
Url should be intercepted and the snackbar should well displayed
On Android :
Redirecting using loadUrl:
Url should be intercepted and the snackbar should well displayed
Redirecting using JS:
Url should be intercepted and the snackbar should well displayed
Steps with code example to reproduce
Steps with code example to reproduce
Stacktrace/Logs
Stacktrace/Logs for Android DEMO
Flutter version
3.24.3
Operating System, Device-specific and/or Tool
Flutter doctor -v
Plugin version
6.1.1
Additional information
iOS DEMO :
ios_demo.mp4
Android DEMO :
android_demo.mp4
Self grab
The text was updated successfully, but these errors were encountered: