Questions tagged [android-chrome]

This tag refers to the Google Chrome browser version for the Android platform.

69 questions
81
votes
13 answers

Android - WebView language changes abruptly on Android 7.0 and above

I have a multilingual app with primary language English and secondary language Arabic. As described in the documentation, I have added android:supportsRtl="true" in the manifest. I have changed all xml properties with left and right attributes to…
Yash Sampat
  • 30,051
  • 12
  • 94
  • 120
49
votes
3 answers

Android Chrome browser address bar shifts fixed element hitareas

It seems Android Chrome has a pretty major bug where sometimes the address bar hiding/showing causes fixed elements to shift their bounding box down/up by the browser's address bar height. So the elements visually stay in the same spot, however, the…
James
  • 1,045
  • 8
  • 17
14
votes
1 answer

How can I stop Chrome background updates killing my app?

Updated Post The Problem We have various logs indicating that a background update to Chrome is killing our app, which uses webviews. The logs all follow a similar pattern; 3034 3049 I ActivityManager: Force stopping com.android.chrome appid=10115…
13
votes
5 answers

Get Android Chrome Browser Address bar height in JS

How do I get the height of the address bar in JavaScript in the Chrome browser for Android (marked by red rectangle in left picture)? I need to know that as it disappears while scrolling down and I need to react to that because the viewport height…
Erando
  • 811
  • 3
  • 13
  • 27
9
votes
1 answer

Wake-lock works in browser, but not as PWA

I have a web app that uses wake lock (see below) - I have registered the origin trial and added the code to my index.html. - see https://lucid-franklin-4016c2.netlify.com/ When I load the page in the latest version of Android Chrome the phone stays…
Simon H
  • 20,332
  • 14
  • 71
  • 128
7
votes
1 answer

navigator.share won't resolve nor reject when user cancels native selector on android

So, we are implementing navigator.share() (https://developers.google.com/web/updates/2016/09/navigator-share) in an Ionic v3 PWA. It works, but there's a little problem we encountered which we don't know how to fix: when the navite share selector…
Ariel
  • 1,507
  • 2
  • 20
  • 28
6
votes
1 answer

Open android-app scheme with Chrome on Android

I was wondering how I'd have to configure my app to open it with android-app://application.id? adb shell am start android-app://application.id The URI_ANDROID_APP_SCHEME seems not to work as documented. Instead Chrome and Firefox only open a…
tynn
  • 38,113
  • 8
  • 108
  • 143
5
votes
1 answer

how prevent user typing special character in android browsers on keydown event (event.preventDefault not wotking)

the event.preventDefault does not working in android as I know. so what is the best alternative way to prevent user typing special character in android on keydown event. note: the replace value solution when input event fired is good but in my…
sina
  • 145
  • 1
  • 6
5
votes
2 answers

Font size display issue on Google Chrome for Android

I have a webpage where the font-size of body 16px. On Google Chrome for Android, I have the following problem: When the page initially loads, the font size in elements which don't have a font-size defined (and therefore inherit the font-size from…
Adam Scot
  • 1,371
  • 4
  • 21
  • 41
5
votes
2 answers

SpeechSynthesis in Android-Chrome: cannot change English voice from US English

I'm using the speech synthesis API on Android-Chrome. The issue is that although there are 4 English voices available, it is always US English that is used by the browser, no matter what the code specifies. I can use other languages e.g. French,…
Frazer
  • 1,049
  • 1
  • 10
  • 16
4
votes
0 answers

Blob distorting audio on Android Chrome

I am trying to input audio stream from microphone and save it to blob so I could send it to Speech Recognition API endpoint. This works perfectly on google chrome on desktop, but I noticed errors when I would switch to a mobile device browser…
3
votes
1 answer

How does Chrome hide "GIF" button from Gboard on its search view?

I am looking for an elegant solution to block gif/emoji input from Gboard on Android. Since I use androidx.appcompat.widget.SearchView, there is no trivial way of leveraging onCreateInputConnection to create a custom AppCompatEditText. However I…
3
votes
1 answer

Trusted web activity - Digital assets link validation for intranet/private web app seem to be failing

I've followed this doc to Create a wrapper Android app based on this sample project for my UI application which runs in non-public domain in our corporate servers. Add assetlinks.json in my Angular 6 PWA application, with SHA256 fingerprints of my…
Anand
  • 9,672
  • 4
  • 55
  • 75
3
votes
0 answers

Android (V. 8.0.0 Chrome 61.0.3163.98) / Jquery - prevent default behavior when clicking enter on editable div

When clicking "enter" inside an editable div with Android chrome (Android 8.0.0 Chrome 61.0.3163.98) if the cursor is in-front of a word or in the middle of it, I cannot prevent the default behavior from happening. (When I catch the event with…
David Somekh
  • 795
  • 3
  • 12
  • 33
3
votes
1 answer

Android Chrome: HTML

I have a form with CSS-styled and radio buttons that simulate a tabbed-structure. Only the s are visible and should be click-able. It looks something like: [Economy|Business|First] HTML:
1
2 3 4 5