Chrome mobile is Google's browser for mobile phones. It is available on android and iOS
Questions tagged [mobile-chrome]
204 questions
10
votes
1 answer
window.scrollTo not working in iOS chrome
We are using javascript code to scroll to a div with the given ID. I tried to use
jQuery.animate({scrollTop: number})
window.scrollTo(0, number)
setTimeout(function() {window.scrollTo(0, number);}, 1000)
I also tried to add #element_id to the…

arun15thmay
- 1,062
- 1
- 9
- 19
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…

Vincent
- 4,876
- 3
- 44
- 55
9
votes
1 answer
Speech recognition and getUserMedia
I'm building a web application and plan on using both speechRecognition and navigator.getUserMedia for audio input.
I noticed that my desktop browser (Chrome on Mac, v. 31.0.1650.63) asks twice for permission to use the microphone. While this may be…

snorpey
- 2,327
- 3
- 18
- 28
9
votes
3 answers
ICS file Download fails on iPhone Chrome with "Unknown File Type"
I've got a php script that's auto-generating an ics file for a mobile web app.
Using Chrome on my Win7 desktop, the ics file downloads fine, and Outlook likes it.
Using Safari on my iPhone, the ics file opens the calendar app as expected, and allows…

SteveJ
- 290
- 2
- 10
8
votes
2 answers
NotAllowedError: Must be handling a user gesture to perform a share request. navigator.share
I have a simple page with some details whose action I handle via an AJAX request.
On success callback of the AJAX call I am trying to trigger navigator.share which gives me an error:
NotAllowedError: Must be handling a user gesture to perform a…

Bipul Jain
- 4,523
- 3
- 23
- 26
8
votes
1 answer
Prevent iOS Safari from capitalizing the first letter of inputs
I have a case sensitive username field in my web app. In most instances, it works fine. Unfortunately, Safari on iOS and Chrome (sometimes) on Android want to "help" by capitalizing the first letter of any text entered into the input.
Since this is…

Bryce Howitson
- 7,339
- 18
- 40
8
votes
0 answers
window.opener is null on android chrome (but not in incognito)
I'm opening a new window to complete an Instagram oauth like so:
var newWindow = window.open(url, 'Instagram Login', 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
where the url is simply the oauth path for the…

Pabs123
- 3,385
- 13
- 29
7
votes
4 answers
How to keep header at top of visual viewport after layout/visual viewport changes in Chrome mobile web?
I know there have been multiple SO questions about this, but none of them seem to work anymore since the browser teams have made changes since those questions were asked. I'm trying to find the most up-to-date solution to this problem.
Objective
My…

Dan L
- 4,319
- 5
- 41
- 74
7
votes
1 answer
How to prevent target="_blank" links from opening by PWA app while you visit from chrome?
Some links on my website project have target="_blank" when I try to open it from Chrome 76/77 on Android mobile device all external links opens by PWA app which was installed (added to home screen).
I need to open my links in a new tab instead of…

Volodymyr Bilovus
- 654
- 2
- 7
- 20
6
votes
3 answers
Intent URL in mobile Chrome for testing multiple android package names
I'm using an intent URL to launch an app from mobile Chrome, or if the app is not installed fallback to a URL. It's described at https://developer.chrome.com/multidevice/android/intents.
Now I have encountered an app that exists with two different…

gevert
- 682
- 6
- 8
6
votes
1 answer
requestFileSystem ok on Chrome, but undefined on Safari7 and mobile Chrome/Safari
I'm trying to test the HTML5 FileReader API FileReader.readAsDataURL(file) on mobile but I'm running into problems. It works fine in desktop Chrome, but fails in Safari and mobile Chrome/Safari
I'm using this line:
window.requestFileSystem =…

michael
- 4,377
- 8
- 47
- 73
5
votes
0 answers
React Input onKeyDown/onKeyUp Android Chrome
The issue I am running into is I have a React App with a form with Input elements that I have a need to detect if the Enter Key or , has been pressed. It is working fine on desktop chrome but Android chrome (Samsung Note 9). First the mobile…

TagmanSr
- 51
- 2
5
votes
1 answer
socket.emit is not working in mobile chrome (but it works in incognito mode)
I have an application using socket.io, and socket.emit() is not working from mobile chrome (on Android and iOS).
I can see that the socket.emit() is getting executed in the browser.
But my server-side console.log statements in socket.on() are not…

Deepak Joy Cheenath
- 5,796
- 5
- 25
- 29
5
votes
1 answer
remove/prevent chrome mobile dev tools context menu on long tap
I'm developing(debugging) a mobile app on chrome's mobile simulator, and I kinda irritated on chrome's context menu when you press and hold on the mobile. Is there a way to remove/prevent it from showing? Is there a feature on chrome to manually…

olanchuy
- 405
- 1
- 4
- 13
5
votes
1 answer
why is cordova slow even for css transforms?
I have been building a demanding hybrid app using cordova and have noticed that generally it is slow compared to when I run the website in mobile chrome. Some arguments I have heard which don't make sense to me:
css animations in mobile are slow…

navgeet
- 987
- 1
- 10
- 23