-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache-busting in homescreen apps #54
Comments
Hi Mark—just a quick question that Liam and I were wondering yesterday and might relate to this point. If/when caching works for the homescreen app, will users be able to use Artbot, exit the app for a bit (say, to write a text message or answer an email), and then, clicking on the homescreen app icon, be able to return to the same location on Artbot? |
Hi, @desigonz, @jamiefolsom, and @mailbackwards! Before proceeding to scope efforts on the HTML5 appcache, we need to put this in your hands for a verdict. Let us know what you think. Thanks! While working on app integration for the MVP, we agreed to push out some issues with the appcache and iOS homescreen apps for a later phase. Revisiting these issues has been included on our Phase 1.5 list, and we've been doing some advance work to figure out where we're at and what our options are. Those options are not great, and we need to put the decision as to what to pursue in your hands. If we leveraged no other features in the HTML5 appcache, we sought to include a Doing so, however, introduced us to an iOS 7 bug, widely documented and a source of universal frustration. When a cache manifest is specified, I encountered one post claiming this was fixed in July's 7.1.2 update, which is what I'm running. We restored the Where does that leave us at present? If we encourage users to add the web app to their homescreen in iOS, at present we have a choice: Do we risk those users accessing an outdated codebase by omitting Neither of those are great options, but the third option is also a challenge. On this item, we'd need some open-ended time (budget) to explore other options. "Other options" would likely be limited to building our own history of navigation links in JavaScript, effectively taking over control of the back button. I'm confident this would incur significant time on corresponding JS logic and testing. (Note that we have considered traditional cache-busting tricks, like adding querystrings to CSS & JS file references, or letting Grunt generate new filenames each time and dynamically update their reference in HTML files. It's likely this would not work, though, because the HTML referencing those files would be cached as well.) In summary, we'll need you to decide which direction you'd like to pursue. Our 3 options are:
Documentation of the issue and options we've explored:In jQM conversations:jquery-archive/jquery-mobile#6990 Not limited to jQM:http://stackoverflow.com/questions/18996077/javascript-history-back-not-working-in-ios7 "Couldn't find a workaround":Not fixed in 7.1.2:http://www.genuitec.com/support-genuitec/viewtopic.php?f=2&t=6999&p=24904#p24904 While it's possible to run script based on full screen mode, this would run after the HTML element was loaded with the appcache manifest tag, at which point we couldn't modify the HTML element. And the appcache manifest tag needs to be present before the user adds the app to their homescreen. That's the point where it's registered.Cited the issue, but not a fix - It only worked in "debug mode."http://bugs.bizmodeller.com/view.php?id=146 Fix? UIWebView onlyhttp://stackoverflow.com/questions/18948373/why-is-uiwebview-cangoback-no-in-ios7 Apple's documentation on appcache: |
While I've been told that Apple frowns on approving App Store apps that are little more than a WebView shell to a website, it may be worth considering putting a wrapper around the web site as an iOS app, with some of the goals in #53 as factors. (An iOS app would be addressable from an email if installed, I believe. A homescreen app likely would not.) |
Hi Mark—thanks for your research into this! We'll regroup once Liam is back in town (tonight) and let you know our thoughts. When would you ideally like a response? |
I think we're getting close to putting a budget on the other items, which can be tackled independently of this decision. Once you have a verdict here, we'll figure out next steps for you to review. My plan is to get summarizing the other items as details are complete, put a budget on those for your review, and get a timeline in your hands. Just let us know what you're thinking on this item or if you need additional details. Thanks! |
We removed the appcache manifest because of an iOS7 Mobile Safari bug that broke browser history (back button navigation) when the appcache manifest was present.
That may have been fixed in iOS 7.1.2, released early in July. We'll re-enable and test with that version. If the issue remains, I'll follow up with more details.
The text was updated successfully, but these errors were encountered: