527 questions
0
votes
0
answers
49
views
TWA - Android Browser Helper - with GPS and Maps
I have used googles sample code to create an Android Browser Helper app for the google play store. Have found the source code from github.
https://github.com/GoogleChrome/android-browser-helper
After ...
1
vote
0
answers
95
views
How to use PostMessage with TWA to enable communication between TWA & browser via JS?
My LauncherActivity.java file has the following code:
package in.example.app;
import android.content.pm.ActivityInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
public ...
0
votes
0
answers
55
views
Can we send back data from App to Chrome in previous opened Tab?
I have made a payment app in Java Kotlin. My requirement is that a webpage can call my app for payment then after successful payment I can response back that webpage with transaction ID.
From web page,...
5
votes
4
answers
1k
views
JavaScript : window offline event not firing on Android phones (not in Android Browser or Chrome) and navigator.onLine Return always true
JavaScript navigator.onLine command suddenly stop working on Android phones, not in Android Browser, also not in Chrome!
In Android Galaxy, as soon as you put on flight mode (or there is no internet), ...
1
vote
0
answers
183
views
Why window.onpageshow not running in android default browser?
Currently i'm trying to check if user press back button when running my webpage.
I'm using window.onpageshow to check the experience. It works well in chrome and also safari.
My problem is window....
1
vote
1
answer
671
views
Minimum Chrome version for TWA - options?
I have a Trusted Web Activity app that is displaying a Progressive Web Application by using the Android Browser Helper. The documentation and code indicates that the mobile app only runs properly when ...
3
votes
1
answer
1k
views
How to detect Caps Lock is ON on web browser on Android Devices using JavaScript?
We can very well detect CapsLock is ON/not on iPhone web browser using KeyboardEvent.getModifierState(), with sample code,
function checkCapsLock(e) {
if (e.getModifierState("CapsLock")) {
...
0
votes
0
answers
181
views
How to get all browser history on Android Studio Project
I know the permission com.android.browser.permission.READ HISTORY BOOKMARKS permission was removed from Android version 6 and API level 18+. But is there any way to get all the browser history from ...
2
votes
0
answers
76
views
onHeadingChange(event) getting single value for geometrically opposite positions
I am working on android device orientation and getting same values of event.alpha (270) in following positions as shared in image.
i am using following code:
// called on device orientation change
...
2
votes
0
answers
236
views
error httpclient doesn't work in android browser work's in chrome
error screenshot
post, get, etc. methods http works in the desktop browser but not in android browser, in chrome for mobile it works fine
import { HttpClient, HttpErrorResponse, HttpHeaders } from '@...
5
votes
3
answers
3k
views
Android open link in Mozilla Firefox app in the current open tab
I have a very specific requirement: I need to open a URL link in a browser (not in a WebView), and I need it to open in the currently open tab, i.e. the opened page should be a "redirect" (meaning in ...
0
votes
1
answer
23
views
border-radius is not support in image in Gionee phone, when i am giving the border-radius to image, image get hide
border-radius issue in Gionee mobile
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
but it's not working for me then I try ...
0
votes
1
answer
755
views
How can I open a web page from inside my app?
I've found an app's source code and it opens web pages using external browsers, like Chrome or others. I want to make it access those pages from inside the app, without using an external browser. I ...
7
votes
3
answers
2k
views
Detect web app running as homescreen app on Android Stock Browser
We are building a web app that has to be used as a standalone / homescreen app. In Chrome and Safari we can detect if it is viewed from the browser or from native-like browser container with either ...
13
votes
4
answers
9k
views
How to enable Safe Search in my Android browser
Requirement
I have requirement in my browser to enable/disable safe search while browsing.
On Google Safe Search Page
Block explicit results on Google using SafeSearch
You can filter ...
3
votes
0
answers
154
views
Getting SSL error while opening untrusted SSL link in XWalkView (CrossWalk)
I'm using crosswalk as an alternative to webview in android for an application that has builtin mini browser and require lots of web navigation.
Problem:
Now whenever I try to navigate to a SSL ...
0
votes
0
answers
298
views
How to use deprecated methods in older api
I have the below code to get the browser history. I know BookmarkColumns was deprecated from android M. I want to run this code only if the end device is API<=Lollipop. This method is working good ...
2
votes
0
answers
440
views
PDF download does not work on Android Captive Portal Browser
I have a captive portal set up on my RaspberryPi device which runs a Python/Pyramid based project. When you connect to device's hotspot it gives a notification and when you click on that notification ...
3
votes
0
answers
1k
views
Android wifi login via hotspot landing page, using Facebook API, browser not fully communicating with facebook
We have created a wifi hotspot, using a Mikrotik Routerboard. Everything works fine from laptops, i.e. When the user opens a browser, they get redirected to the hotspot landing page we have created. ...
1
vote
0
answers
574
views
Scroll view in React incorrectly resetting to top on Android stock browser when using setState
I created a simple web app (source code) using react-native-web with a ScrollView and a Text at the top of the screen that gets updated with the ScollView's y offset using setState on my component. ...
2
votes
0
answers
881
views
Why would an intent to open an external browser window not work, and instead open within the web view?
I have an Android SDK that uses a web view to show some pages, but depending on the requested link, I have it open an external browser. I am using the WebView's shouldOverrideUrlLoading method, and if ...
0
votes
1
answer
828
views
horizontal scroll on android chrome, works in funny way
in my site I have a responsive table, it is work fine on all browsers on Desktop (windows and Linux), but when I open the page with android chrome (and also ios browser) vertical scroll work just fine,...
1
vote
1
answer
2k
views
Getting "failed to load resources :ERR_INSUFFICIENT_RESOURCES" error while loading Service Worker in Chrome/Opera browsers on Android
I'm using Service Worker to make a hybrid application to run offline, so I added all links necessary in my SW to run my app offline.
It is working fine in Chrome and Opera on desktop but in Android I ...
0
votes
1
answer
69
views
Youtube api not playing musics on tv speakers
I am using youtube player api to play youtube videos for my application.
Have tested my application by connecting my Tab with TV by using HDMI cable.
Error :
When I run the video from my ...
1
vote
0
answers
1k
views
Uncaught TypeError: undefined is not a function Android Browser
I am getting a strange error on Android Browser that it constantly says
Uncaught TypeError: undefined is not a function
On a function that is working perfectly on all other browsers even Safari. ...