-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
shouldInterceptAjaxRequest no call #344
Comments
I don't have enough information about your problem. I need a more detailed description. An ajax example is available inside the The corresponding server-side (Node.js) that manages the ajax request is here:
|
This problem appears on Android phones |
Did you get some javascript errors from debugging (chrome://inspect/#devices)?? However, without any code to test, I can do nothing about it, because I can't reproduce your error. If the ajax request you are trying to intercept has been made before the If you can control the javascript code of the webpage your showing, then the ajax request should be made after the DOM is ready, otherwise you can't intercept it. |
@pichillilorenzo Thanks, indeed as you said at the end |
@pichillilorenzo hi,I have a problem again, sometimes it won't be called on the Android device. The URL is https://h5.jimmychat.com/active/#/pages/index/index, very sad, please help me. |
Could you explain to me where are your Ajax calls in your code? Otherwise, I can't tell if it is working or not. What do you expect exactly in your use case? |
@pichillilorenzo in init(), call https://tchatweb.jimmychat.com/TChat/user/score/info,This ajax needs to set a specific request header, so I need to use the shouldInterceptAjaxRequest method to forward. Mainly, it is normally available on iOS devices.Oh hope you can understand what i'm talking about |
@pichillilorenzo I finally found out that it cannot be called in China. Is it because part of the network is blocked, like the Chinese network cannot access google.com |
Is there any Google service in flutter_inappwebview's js code that intercepts Ajax? |
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it. |
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. |
initialOptions: InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions(
debuggingEnabled: true,
javaScriptCanOpenWindowsAutomatically: true,
useShouldInterceptAjaxRequest: true,
useShouldInterceptFetchRequest: true,
The text was updated successfully, but these errors were encountered: