Android disconnects on Ajax calls when viewport meta tag is defined

I am creating a web application that is designed to run in an Android browser.

When I have a webpage containing a meta tag of any kind, for example:

<meta name="viewport" content="width=400"/> 

My webpage crashes on ajax calls. This happens when using the emulator, the actual browser on my base station and on the droid (everything works on Android 2.1).

Without a meta tag, ajax calls are executed as they should.

Any ideas?

+4
source share
2 answers

In addition, he recommended setting content = "width = device-width" these days and styling the page with CSS to look as tolerant as possible. Otherwise, you get a ridiculously enlarged page on the iPad.

Of course, it doesn't matter if you already have a way to handle this.

+1
source

You can try using the meta tag below.

I have successfully used both of these meta tags, and AJAX calls really worked for me on the Nexus One.

 <meta name="HandheldFriendly" content="true" /> 
+1
source

Source: https://habr.com/ru/post/1306376/


All Articles