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

How to get callback results #227

Closed
Karatla opened this issue Dec 16, 2019 · 6 comments
Closed

How to get callback results #227

Karatla opened this issue Dec 16, 2019 · 6 comments

Comments

@Karatla
Copy link

Karatla commented Dec 16, 2019

I do not want to load a url immediately when I click a url in web by inappwebview . I want to get control or result first and depend on me if the web could load new url . I used useShouldOverrideUrlLoading to achieve this and it works well in some url but some url not working .

@Karatla
Copy link
Author

Karatla commented Dec 16, 2019

Or when could you update new function like get
Click event in webview

@Karatla
Copy link
Author

Karatla commented Dec 16, 2019

Like this webview. performLongClick() in android webview

@pichillilorenzo
Copy link
Owner

pichillilorenzo commented Dec 16, 2019

@Karatla it depends on the link type. For example, if the link has target=_blank, then you need to use the onTargetBlank event (with useOnTargetBlank option to true) to capture clicks on that link.
Otherwise, can you post the link to that webpage which shouldOverrideUrlLoading is not called? Tell me which is the link (or the links) of that webpage that is not captured when the user clicks on it, thanks!

However keep in mind that onTargetBlank will be removed in the next release with another event called onCreateWindow! Also, shouldOverrideUrlLoading will be updated.

@Karatla
Copy link
Author

Karatla commented Dec 16, 2019

@pichillilorenzo
Thank you . It was my mistake. When I use targetblank it worked fine.By the way could you provide a function which can listen onlongpresse for url in web?
Thank you so much.

@pichillilorenzo
Copy link
Owner

Ok, I will check about that!

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