Hello!
Is there a way to make Webview open links outside the app (with Safari or Chrome)?
For example by injecting JS?
Thank you guys!
Hello!
Is there a way to make Webview open links outside the app (with Safari or Chrome)?
For example by injecting JS?
Thank you guys!
You can use this:
You can find this at the bottom of the CONTROL drawer.
Is it part of Webview module? I was referring to links displayed by a webview.
Thanks
to open links in app then use web viewer if you want to open links in a browser and then use the open link block
is that working for you
Thank you for your reply. Let me give more details:
The webview opens all links inside the webview itself by default. in other words, links are opened inside the Thunkable app.
My request is: To open the links (being inside a webview) in external browser (Chrome etc).
Knowing that a webview: Opens web app based on its URL.
Does is make sense?
Something like to override Webview.
@Override
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
Intent i = new Intent(Intent.ACTION_VIEW, request.getUrl());
startActivity(i);
return true;
}
so you are telling to open link in chrome app of device if yes then use the open link block
If you want to open the link that was inside the Web Viewer, this might work.
Happy Thunking!
Do you mean you want to redirect within the webviewer and not in the native phone browser?
Or
You want to click a link in webviewer and be redirected to the native phone web browser?
I want to click a link in webviewer and be redirected to the native phone web browser
can someone please tell me how can i restrict a link opening in webview only?
i don’t it to be opened in mobile browser.
im trying to add my website but it keeps saying refuse to connect what should i do???
Hey @clayonbrown3177v this seems to be a different qeustion than where the original topic is about.
Could you please create a separate topic with your qeustion.
Thanks
are you testing on companion or in website thunkable creator website itself @clayonbrown3177v