Webpage crashing on any web browser for iOS device - ios

I am trying to access webpage on various browser on iOS Device, but it seems that after loading some part of the webpage, it redirects automatically and then crash the page and shows the webpage was reloaded because a problem occurred for 2 seconds, and then show A problem repeatedly occurred on "URL for page as below"

I tried this URL on a desktop and it was not behaving well. I don't know if it is there rotating image code, or the JavaScript code they have running the "design your shoe" features. But this site had weird stops and starts and mouse jumps when I tried it.
I don't have an iOS device handy, but I'm thinking it is not you, it's the site.
Try it on another device.

Related

iOS/Safari: "Back" button on FileDownload screen sometimes missing

Currently I'm facing a weird problem where I don't have any clue (because of this sorry for the very vague question). I've developed an Angular Web Application, that offers a file download. Now the weird part:
When testing on iOS (13.3, iPad, iPhone), basically everything is working. Then I did some variation of my test: I used the "Add to home screen" feature, where the web-app basically pretends to be a PWA, and iOS/Safari is opened without any browser UI.
In this mode, Safari handles file downloads a bit differently: When downloading a file, it shows a full-screen Overlay with the file name and some options, and some "Back/Done" button in the top bar (see screenshot below, where I download a test file "image.jpg").
The problem is that on some iOS devices on some test servers, exactly this button is missing in Safari, everything else is working.
Any idea what could trigger this behavior in iOS/Safari?
iOS PWAs have been really buggy with small issues like this because of certain new iOS features such as the Safari Download Manager in browser so Apple either hasn't realized or decided how they want to handle these bugs in PWAs.
I'd suggest to try out some different options to download your test files: https://forums.developer.apple.com/thread/95911

HTML5 web app not caching when added to home screen on iOS

I have web application ASP/MVC which uses application cache and it has to work as standalone application when added to home screen. It works fine, but on iOS10 it doesn't cache and doesn't work on offline mode. I don't have exact steps but it seems like it stops workign when i add this application for second/third time:
1 I add application to home screen and it works properly
2 I add this application to home screen again - it doesn't work
And all next installed applications doesn't work.
Also i wasn't able to reproduce it on one of the test servers.
I would try to clen cache (maybe it would help) but because of atandalone applications are opened not in Safary on iPhone - i don't know how to do this.
Also i found script to debug application cache
https://jonathanstark.com/blog/debugging-html-5-offline-application-cache?filename=2009/09/27/debugging-html-5-offline-application-cache/
But when i run application which doesn't work in offline mode - it simply doesn't enter in any of events handlers.
Found out what the problem was. There was redirecting on another page on my site and you could redirect even if application cache is still loading content so the caching stops and after redirecting back we on purpose setted manifest to empty string (it turned out like a feature that after redirecting back caching doesn't start being loaded). But on another OS caching started loading according to previous manifest, and only for iOS 10 if manifest turns out to empty string - caching doesn't start.

What could cause iOS Universal Links to stop working?

I had Universal Links working on my iOS 9 app. If I clicked on a UL from an email or text message, it would launch my app as expected.
Then I added a QR Code Reader and used openURL() open the UL embedded in the QR Code from within my app (which was supposed to be handled by the app itself).
On one test run, the URL embedded in the QR code was malformed: it had a CR/LF at the end of it, and when the app tried to open it, it crashed (I do not have the crash log/trace unfortunately).
As I researched the crash I realized that openURL() is not designed to work with UL, so I fixed the code to have my app handle the URL differently, but now none of the ULs work with my app anymore: what used to work from an email or text message doesn't anymore (it launches Safari instead of my app).
I install my app via TestFlight and I can see from my backend that the apple-app-site-association file is being pulled, but it still won't work.
Important data (that's how I know the problem is with the state on that specific phone): the same app on a different phone opens ULs correctly.
It's as if the one bug I ran into put the phone in a state that will always launch Safari for those URLs no matter what.
It is the only phone that exhibits this problem.
What I tried without success:
uninstalling the app completely
reboot
Not sure what to try next. Thanks in advance for the help.
You probably clicked on the link in the top right corner of the status bar to open one of your ULs in Safari. After that all subsequent ULs will open in Safari.
In Safari, pull down the page until you see the Smart-App-Banner at the top. Then click on 'Open' and ULs should work again.

BlackBerry Simulator freezes when navigating through browser

The BlackBerry Device Simulator v6.0.0.706 (9800) freezes every time I attempt to load a page in the browser. I'm able to load the browser and go to www.google.com, but loading any other page freezes the entire simulator. To get back into the simulator, I have to close the window and relaunch.. stopping page load or pressing any of the other buttons in the window does not work.
This is what I have tried:
Tried loading other web pages to see if the problem persists.
Tried installing to C:\BlackBerry instead of the default directory in case spaces were an issue.
Updated to allow full access to all users and my Windows user account.
Tried running as Administrator.
No error messages display, the simulator just freezes and stays stuck on the same page until I relaunch the simulator. I am running this on Windows 7. Thanks for your help.

Anyone experience caching issues with web apps ran in full-screen mode iOS/Mobile Safari?

I'm having a very strange issue with my web app (which is ran in full-screen mode from the home screen) and Mobile Safari. Usually, as I develop, I edit the files with the changes that I want to make and then I re-launch the app from the homescreen. As per iOS design, the web app will refresh and reload the site.
However, in some odd but frequent situations, when I launch the application I get a cached older version of the app. If I navigate to the app through Mobile Safari (not from home screen) then everything looks great.
I've added meta no cache tags all over the space and even attempted to thwart the cache by adding ?query strings to .css files, etc, but for some odd reason when a cached version decides it wants to display - it will display, no matter what. Clearing cache and data from the settings menu and then relaunching will only sometimes fix the problem.
Anyone else run into this issue? If so, how did you fix it? Is it a known iOS bug? I'm thinking about adding some onLoad code to check if the application is running in full screen mode and then explicitly force a refresh.
Please help - this is extremely annoying and frustrating!
Rich
In my own testing I also found that applications run from the "Home Screen" on iOS won't properly refresh their CSS and JS files. This appears to be an ongoing problem. The only solution that worked for me was to:
Change the device date forward by 2 days or so..
Reload the app from the Home Screen..
Reset the date.
I also tried deleting and recreating the icon from the home screen and clearing the cache in Safari.
"Happily" you are not the only one seeing this problem.
https://discussions.apple.com/thread/3385843?start=90&tstart=0
Incase anyone asks. There were no manifest files involved in my testing.
iPad 2 with IOS 5.1.1.
Enable Debug console from "Settings>Safari>advance" and see if you've any errors there.
Most probably you may have an 'Invalid MIME type", Manifest Parsing or Resource Fetch Failure Error.
Fix them (this link might help in fixing those http://www.fuckyeahtml5.com/2011/06/debugging-html5s-offline-web-apps/).

Resources