mobile-safari

The same site produces “too many redirects” only via cellular, not via WiFi

邮差的信 提交于 2020-03-01 01:33:43
问题 This bounty has ended . Answers to this question are eligible for a +250 reputation bounty. Bounty grace period ends in 35 minutes . dasblinkenlight wants to draw more attention to this question: This problem drives me nuts. I am sure that I am not the only one experiencing this issue, though, so I would welcome any thoughts that would lead me closer to solving the issue. I host a small web site at an external host provider. When I open it from my iPhone, I get different results depending on

The same site produces “too many redirects” only via cellular, not via WiFi

故事扮演 提交于 2020-03-01 01:32:47
问题 This bounty has ended . Answers to this question are eligible for a +250 reputation bounty. Bounty grace period ends in 36 minutes . dasblinkenlight wants to draw more attention to this question: This problem drives me nuts. I am sure that I am not the only one experiencing this issue, though, so I would welcome any thoughts that would lead me closer to solving the issue. I host a small web site at an external host provider. When I open it from my iPhone, I get different results depending on

event.key is undefined in mobile browsers for keyup, keydown and keypress

≯℡__Kan透↙ 提交于 2020-02-29 22:05:41
问题 The following code is supposed to simply suppress any key press and add the pressed key to a div instead. This works fine on desktop, however on mobile (safari and chrome) event.key is undefined. <html> <head></head> <body> <input /> <div id="#test"></div> <script> var str = ''; var el = document.getElementById('#test'); document.addEventListener('keypress', function(event) { str += event.key; event.preventDefault(); el.innerHTML = str; }) </script> </body> </html> event.keyCode and event

angularjs slide transition broken on safari ios 9

我与影子孤独终老i 提交于 2020-02-03 04:00:30
问题 I have the following css classes that I use to slide my ng-view left and right at route change start. These all work quite well on most browsers, phones, etc. Until now... Under ios 9 the animation is not quite working, it no longer slides left to right, but the view grows from a small size to full size while sliding, the effect is rather unpleasant. Any help would be welcome! CSS .slide-left.ng-enter, .slide-left.ng-leave, .slide-right.ng-enter, .slide-right.ng-leave { position: absolute;

Mobile Safari scroll momentum not working

给你一囗甜甜゛ 提交于 2020-01-31 05:16:24
问题 I'm having a bit of an issue with a responsive site at the moment. All but one of the pages don't get the scroll momentum you would normally get from using the Internet on your phone. I'm not sure if this is restricted to mobile safari or other mobile browsers, I've only just started the responsive work on this site. But, does anyone know why some pages might not have scroll momentum? Some of the pages are quite heavy with images and a little jQuery, but I wouldn't think there's enough to

Stop reloading of web app launched from iPhone Home Screen

江枫思渺然 提交于 2020-01-28 13:22:20
问题 I created a web app and added to my iPhone Home Screen. When I switch to another app and back, iPhone automatically reload my web app. This breaks my app flow. How do I prevent iPhone from reloading the app? I have apple-mobile-web-app-capable meta tag enabled to hide Safari toolbar and I don't want to turn it off. 回答1: I just found this related question on SO: Stop native web app from reloading itself upon opening on iOS As it seems it's a limitation of Safari, a proposed solution is to

Stop reloading of web app launched from iPhone Home Screen

点点圈 提交于 2020-01-28 13:21:45
问题 I created a web app and added to my iPhone Home Screen. When I switch to another app and back, iPhone automatically reload my web app. This breaks my app flow. How do I prevent iPhone from reloading the app? I have apple-mobile-web-app-capable meta tag enabled to hide Safari toolbar and I don't want to turn it off. 回答1: I just found this related question on SO: Stop native web app from reloading itself upon opening on iOS As it seems it's a limitation of Safari, a proposed solution is to

Getting inconsistent results from window.innerWidth in Mobile Safari

会有一股神秘感。 提交于 2020-01-25 00:51:06
问题 I'm using this javascript to detect the browser width: $(document).ready(function(){ var width = window.innerWidth; }); It appears to be giving inconsistent results. I've made a working codepen here. by repeatedly refreshing the full-page view in mobile Safari I've received both of the following results: It jumps back and forth inconsistently, and appears to be exacerbated by a larger page size (hence all the images). Sometimes it will only return one result until I kill the app and re-open

cache google map with HTML5 for iphone offline use error

女生的网名这么多〃 提交于 2020-01-24 14:21:07
问题 I'm experimenting with sancha js lib, and buidling an offline iphone4 app. iPhone (iOS 4) is reporting the error when accessing it within iphone safari: TypeError:Result of expression 'google.maps.LatLng' [undefined] is not a constructor Here is my index.html file: <!DOCTYPE html> <html manifest="maptest.manifest"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Map</title> <link rel="stylesheet" href="sencha-touch.css" type="text/css"> <script type="text

Mobile safari vs home-screen webapp

…衆ロ難τιáo~ 提交于 2020-01-22 09:27:30
问题 I am developing a webapp for iOS, and I've noticed some weird things between running on mobile safari and running from the homescreen. Are there any resources that either provide a common interface for going between the modes? If not, are there any resources detailing all of the differences and gotchas between the two modes? Things I've run into: Long-polling is kinda weird. See this example. window.innerWidth & window.innerHeight are inconsistent. Mobile Safari- vertical orientation works as