mobile-chrome

“Navigation is blocked” when redirecting from Chrome Custom Tab to Android app

落花浮王杯 提交于 2019-12-05 14:54:56
问题 I'm 'modernizing' our login widget to use Chrome Custom Tabs as Google will start blocking OAuth requests using Webviews in a few months. The login widget works with our Identity Service, which supports classic 'username&password' login and Social Login, by playing the OAuth2 'Client' in an Authorization Code Flow with Google/Facebook/... So the authorization code from Google is delivered to this Identity Service, which in turn provides our login widget with an access token. The access token

Is it possible to programmatically show URL bar in Chrome for Android?

旧街凉风 提交于 2019-11-29 16:00:54
问题 By default, it gets shown only when the device's menu button is pressed and when the page is swiped down (see the GIF below when the touch marker is red). Can the URL bar be shown using JavaScript? 回答1: The solution It is possible only on user input , because of the limitations of the Full Screen API. See the demo. var p; function showURLBar() { p = [window.pageXOffset, window.pageYOffset]; document.documentElement.webkitRequestFullscreen(); setTimeout(function () { document

remove grey background on link clicked in ios safari / chrome / firefox

本秂侑毒 提交于 2019-11-28 16:03:15
When you click (touch) a link in Safari (or chrome or firefox) for iOS, you get a grey background behind link (only while you're holding it). Is there a way to remove this feature using CSS? Please see the example image below: Webkit has a specific style property for that: -webkit-tap-highlight-color . Copied from: http://davidwalsh.name/mobile-highlight-color — /* light blue at 80% opacity */ html { -webkit-tap-highlight-color: rgba(201, 224, 253, 0.8); } /* change it for a div that has a similar background-color to the light blue tap color */ .blueDiv { -webkit-tap-highlight-color: rgba(251,

remove grey background on link clicked in ios safari / chrome / firefox

夙愿已清 提交于 2019-11-26 18:58:53
问题 When you click (touch) a link in Safari (or chrome or firefox) for iOS, you get a grey background behind link (only while you're holding it). Is there a way to remove this feature using CSS? Please see the example image below: 回答1: Webkit has a specific style property for that: -webkit-tap-highlight-color . Copied from: http://davidwalsh.name/mobile-highlight-color— /* light blue at 80% opacity */ html { -webkit-tap-highlight-color: rgba(201, 224, 253, 0.8); } /* change it for a div that has