Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

In Webview(not the browser), you cannot open in a new window.At this time, single-page applications should be good.


sort by: page size:

It opens the page in a WebView. What's the problem?

Last time I dug around into this, there was a delegate that's called that allows the app to open a new window/tab as makes sense for the app and display the link. I've seen applications that respond to this delegate by just forcing the existing WebView to open the link. If you don't implement the delegate, as I recall, nothing happens with these sort of links, they just appear dead to the user.

UI concistency is horrible with these html-in-a-webview app.

Every app has to re-invent the wheel here, and there's a lot of native controls that don't exist on HTML.

Generally though, window management is unimportant because these apps tend to be single-windowed apps anyway.


WebView is embedded in many apps so using Chrome, or Firefox, won't help.

I had an app released one month ago, a simple wrapper around webview, and 1 page only. Went through well.

The answer is the feature can't effectively be a WebView. Which is the entire problem here.

Yes this is basic (and incredibly common) behavior. The alternative is often much worse (an embedded WebView in each app to do things like open TOS pages).

You do have Webviews but it's stil in an alpha state right now, they have poor keyboard support, no multiple tab support and are not available on anything else than Android & iOS.

I wouldn't say WKWebView is 'the old way', it isn't marked as deprecated and just because there's a new class that's easier to use doesn't mean they replace older classes that let you do more stuff. As you've found out, you've run into problems, but I have no idea why you would think not to use WKWebView if you can't do what you need.

That said, in general, never, ever use in app browsers for surfing the web. We use them for specific pages on our website that should interact back to the app, otherwise we tell the system to open the URL in the user's browser


thanks for this info. i'll checkout WebView, see what it can do.

You can try it in the regular browser, I noticed that the app (the WebView) has poor performance on some tablets. Need to look into that.

Is it a webview?

Really? For webviews?

Literally just a webview in an X window. This is not a 'desktop app'. This is bastardized web.

Webview

That doesn't help with apps that use WebView to render web content.

Talkin about WebView

It’s not anymore, the current version is WebView2 and much faster.

Yes, I had webview in mind when I was writing that comment. But obviously WebViews aren't good enough. We're talking about enough functionality to own a multi-window app.

Edit: What I more specifically had in mind was Firefox Prism, from circa 2007. https://wiki.mozilla.org/Prism

Why this stuff didn't take / isn't more popular now, I don't really know.

next

Legal | privacy