About webview options

191 views
Skip to first unread message

Fatih Elitas

unread,
Apr 9, 2025, 5:32:52 PMApr 9
to DroidScript
UseBrowser option is not working on my android 10 device.
I can't open the url in the phone's browser.
ds 2.76.4 
Does it work for you? Or is it my problem?

web = app.CreateWebView(1,1 ,"UseBrowser");

John Praise

unread,
Apr 10, 2025, 2:11:43 AMApr 10
to DroidScript
Instead of doing this 

<a href="http://example.com">Open</a>

you can do this instead 

<a href=# onclick="app.OpenUrl('http://example.com')">Open</a>


That would open the link in your browser

Alan Hendry

unread,
Apr 10, 2025, 6:37:51 AMApr 10
to DroidScript
HI,
Your initial page will open in DS,
links should open in the browser.
Seems OK in my test.
Have you tried the Map Demo, 
that has UseBrowser (map may open in Map app)?
What version of Android and DS is this?
If you just want to open a URL in the browser
then see OpenUrl.
The hybrid version is not (yet) as full featured,
but may be worth a look.
Regards, ah

Fatih Elitas

unread,
Apr 10, 2025, 4:38:23 PMApr 10
to DroidScript
ds local application;

I want to open a Google account in Webview and connect to APIs like Strava or Facebook and get a return URL address. But Google doesn't allow it. How can I get the return URL address after entering it from the phone's browser? To complete the OAuth transaction. As in the topic here.

https://stackoverflow.com/questions/67046681/google-and-facebook-login-oauth-in-webview-app-popup-function-override-needed

May i know after you redirecting to default browser, how do you pass back the result to your webview??
10 Nisan 2025 Perşembe tarihinde saat 13:37:51 UTC+3 itibarıyla hendr...@gmail.com şunları yazdı:

Alan Hendry

unread,
Apr 11, 2025, 3:20:57 PMApr 11
to DroidScript
HI,
Have you looked at app.HttpRequest?
Regards, ah

Cemal

unread,
Apr 22, 2025, 5:24:55 AMApr 22
to DroidScript
No OAUTH service is accepted with WebView. This is why you need to use the CustomBrowser feature.

Cemal

unread,
Apr 22, 2025, 5:29:00 AMApr 22
to DroidScript
Reply all
Reply to author
Forward
0 new messages