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

scroll horizontally #385

Closed
LIyoai opened this issue Jul 28, 2015 · 7 comments
Closed

scroll horizontally #385

LIyoai opened this issue Jul 28, 2015 · 7 comments

Comments

@LIyoai
Copy link

LIyoai commented Jul 28, 2015

When I open an article from heise.de I have to scroll horizontally. It has worked before, don't remember when it changed.

Using version 0.9.5.2.

@stefan-niedermann
Copy link
Member

i have the problem, too. it seems like the redirection to the correspondenting m.heise.de article does not longer work.

@David-Development
Copy link
Member

This issue can't be fixed by the Android App. Please use the "Open in Browser" option which is really smooth if you have Google Chrome installed on your device.

@stefan-niedermann
Copy link
Member

may i ask why? i'm sure it worked some versions ago. what happens technically? a redirect based on the user agent?

@David-Development
Copy link
Member

I'm not sure but I think they changed the link in the rss feed to their non-mobile website (which makes sense).
I've just tested it again and if I click on "Open in Browser" the mobile site is shown. I've no idea why heise doesn't recognizes that the webview in the news app itself is a mobile browser, too.

@cemrich
Copy link
Contributor

cemrich commented Nov 16, 2015

The same problem exists within other apps with webview (e.g. Pocket). My stock browser is recognized as mobile, though.

Changing the user agent (with chrome dev tools) does not redirect to the mobile version. If it's not the user agent I've no idea how mobile devices are detected on this website...

@kgraefe
Copy link

kgraefe commented Nov 27, 2015

I contacted the webmasters of heise.de and translated their response into english:

  1. The RSS feed links to the desktop version of the website.
  2. They changed the redirection to the mobile site some months ago from server-sided redirection based on the UserAgent to client-side javascript redirection based on the screen size and UserAgent string.

In details that means:
=> No redirection without JavaScript
=> No redirection when the screen width is more than 640 pixels (CSS pixels, not "device pixels"; includes a rotation detection)
=> No redirection if one of the following terms is found in the UserAgent: Macintosh, X11, Windows NT, iPad, Tablet, Nexus 10, KF.*Silk
=> No redirection for tablets

@cemrich
Copy link
Contributor

cemrich commented Dec 10, 2015

I figured it out: The mobile redirect somehow relies on the web storage api which can be enabled using WebSettings.setDomStorageEnabled(true). It is disabled by default. This is the reason why the redirect works with the android default browser (when not in private mode), which also uses WebView, but breaks in many other apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants