Questions tagged [chrome-for-android]

The Android version of the popular web browser from Google.

The Android version of the popular web browser from Google.

53 questions
271
votes
25 answers

How can I force a hard reload in Chrome for Android

In Chrome for desktop I have options in the dev tools to disable cache completely when dev tools are opened and I have the options to manually do a hard reload when long clicking on the reload button (with dev tools open). Is there any such…
Riesling
  • 6,343
  • 7
  • 29
  • 33
34
votes
8 answers

How can I perform an inspect element in Chrome on my Galaxy S3 Android device?

How can I perform an inspect element in Chrome on my Galaxy S3 Android device? I've tried a couple of guides online, one saying to use this android SDK thing to run adb forward tcp:9222 localabstract:chrome_devtools_remote, but all that says is…
James Anderson
  • 815
  • 1
  • 13
  • 23
19
votes
7 answers

Using window.print() or alternative on Android devices

On Android devices (I have tested Nexus 5, Nexus 10, Galaxy S4 and Galaxy Tab 3), the window.print() command in JavaScript doesn't do anything. As far as I can tell it doesn't even register an error. I know for a fact that most if not all of these…
MarshallOfSound
  • 2,629
  • 1
  • 20
  • 26
11
votes
2 answers

Prevent Android from closing a Progressive Web App playing audio in the background

I've written a progressive web app which plays music using the Web Audio API. A common user journey is to start the music playing, then change to other apps whilst still listening to the music. This works fine for a while, until android decides…
lucas
  • 1,910
  • 2
  • 21
  • 25
10
votes
2 answers

Theme Color for Dark Mode in Android Chrome

In HTML you can define a theme color like this: On mobile browsers like Android Chrome this will change the color of the adressbar. But when using dark mode, this value is simply ignored (at the time of…
jor
  • 2,058
  • 2
  • 26
  • 46
9
votes
1 answer

What happens with WebSocket connections when a phone's screen locks?

When a phone browser has an open connection, and the user locks the screen, then at a certain point they will no longer have a WebSocket connection. What events are fired when this happens? Is the WebSocket.onerror or WebSocket.onclose handler…
8
votes
1 answer

How to run the new Chrome for Android 4 on Android Emulator?

I want to be able to test the web based app that I am developing in the new Chrome for Android. I did install the Chrome Beta apk but every time I tried to type a URL in the address bar, the browser crashed saying "Unfortunately Chrome has stopped…
i_a
  • 2,735
  • 1
  • 22
  • 21
6
votes
1 answer

Position fixed on Chrome mobile causing issues when scrolling

I've been researching this issue for the past hour and saw similar questions but I'm not sure they are the same exact problem. Probably related, somehow, but none of the answers helped me fixed my issue. Take the following code: …
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
6
votes
1 answer

How to identify factors that will help reproduce web rendering bugs for android web browsers?

Recently I've been working on a number of tickets for web rendering bugs that are only seen on a subset of Android devices (or even a single Android device). Reproducing bugs in this category seems to be really difficult -- sometimes I find that I…
6
votes
4 answers

Will the android webView be Chrome engine based since android 4.1?

According to 2012 google I/O talk (excerpt below), android webView will be chromium based since version 4.1. Is this already the case for the source code downloaded? In addition, how should I interpret the statement that "WebView and Chrome browser…
pierrotlefou
  • 39,805
  • 37
  • 135
  • 175
5
votes
1 answer

What's the user agent of Chrome for Android after the user switches it to desktop version?

We know Chrome for Android's user agent is: Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19 We also know the latest version of Chrome for Android…
weilou
  • 4,419
  • 10
  • 43
  • 56
4
votes
0 answers

Mobile Chrome flickering when using scroll snap

I am experiencing a weird glitch on Chrome for mobile: I have a webpage using scroll snap and if I scroll down the whole chrome browser would flicker, including the address bar! I don't know why. It works perfectly on other browsers so it's not a…
4
votes
2 answers

Kiosk mode for Chrome or Firefox

I need to write a kiosk launcher for a number of Android devices. It is supposed to launch Chrome or Firefox, showing a specific webpage in fullscreen. That page already calls the HTML5 requestFullScreen() API, but it doesn't work because that call…
ᴍᴇʜᴏᴠ
  • 4,804
  • 4
  • 44
  • 57
4
votes
1 answer

Fixed position div on zoomed browser window on mobile

When zooming an HTML page in a desktop browser a fixed position div will scale like the rest of the page and keep its position fixed relative to the viewport. This used to also be the case on the Chrome mobile browser (It still behaved that way in…
Piwakawaka
  • 489
  • 5
  • 16
3
votes
0 answers

Open PWA/website when web push notification is clicked

I have a simple PWA which sends web push notifications to Android users. I want the PWA to be opened (either the installed app, or whichever browser receives the notification), and following the method outlined in this guide, I've ended up with the…
1
2 3 4