iphone-standalone-web-app

webkit-overflow-scrolling forms broken on iOS 7 full-screen web app

蹲街弑〆低调 提交于 2019-11-30 03:52:45
I'm having trouble with a full-screen (saved to home screen) iPhone web app on iOS7. Typically, when an input is selected, it has scrolled into view above the keyboard. However, this doesn't seem to happen on iOS7 for scrolling DIVs in a full-screen web app. Thus, when a DIV uses "-webkit-overflow-scrolling: touch" and an input in the bottom half of the screen is clicked, the keyboard is fired, but the input doesn't scroll up. AND, at that time, the input won't respond to any further onFocus events that I could otherwise scroll it up with. Anyone seen a workaround? Updating the viewport meta

iOS 'Web App' has different localStorage than Mobile Safari

限于喜欢 提交于 2019-11-29 21:54:51
I have a webapp for iPad with the meta tag: <meta name="apple-mobile-web-app-capable" content="yes"> When I open up the app from the homepage (web-app-capable version) or type in the address in Mobile Safari the contents of localStorage are different. I have confirmed that the addresses are identical by printing location.href. All changes made to localStorage while using Mobile safari are reflected in the web-app-capable version, but changes made in the web-app-capable version are not reflected in the Mobile Safari version. The domains are identical, localStorage should be identical. What in

Add to homescreen on mobile phone

自古美人都是妖i 提交于 2019-11-29 11:44:08
How can I code a button to make a shortcut for mobile phone especially on iPhone and Android. I'm using boilerplate as a framework so it would automatically be adding this on the head section <link rel="shortcut icon" href="img/l/apple-touch-icon.png"> . I think this would be my default icon to be used. now I have a button in my html that is setup like this <a href="#"><img src="img/button-shortcut.jpg" /></a> I'm not sure what to put in my href or should I implement it using javascript. I'm also not sure what is the proper term, I'm just guessing it's called as a "shortcut" What' I'm trying

Is there an iphone url scheme to start a web app in standalone mode from a link

对着背影说爱祢 提交于 2019-11-29 09:43:34
What I'm trying to do is this: I've got a web app the user can choose to add to the homescreen and run in standalone mode. Sometimes the server side of the app sends SMS'es to the user to notify the user of significant events. The SMS contains an URI to the app page of the event. If the user has added the application to homescreen I would like to launch the app in standalone mode Is there a way to achieve this? EDIT From what I've found so far iOS does not implement a url scheme for launching browser based (ie. web apps) in standalone mode. ... But apple should though :) Apple implements

Build an ASP.Net web app with offline functionality

我是研究僧i 提交于 2019-11-29 03:28:39
问题 I'm in the process of building an asp.net (3.5) web app and was wondering if you knew of any way I could do it so that there would be some offline functionality. This is needed as people will be able to 'install' the web app on their device (using the 'Add to home screen' function on an iPhone for example) and then use the app when they are offline; the usage would only be limited (there would be no need for server calls at this point either). Can this be done with an .aspx page? Edit-

Stop native web app from reloading itself upon opening on iOS

杀马特。学长 韩版系。学妹 提交于 2019-11-28 16:23:24
I'm trying to build a "native web app" using HTML + JS on iOS. As you may know you can add such an application to the homescreen and it will more or less look just like a normal native app. However if I quit such an app and reopen it again it reloads the whole page again. This also happens when switching to such an application from another over the multitasking bar. Is this expected behaviour or is there a way to stop the device from doing this? As an example you can add the jqTouch-Demos from here to your homescreen and test it: http://jqtouch.com/preview/demos/main/ You could save the state

How to completely hide the navigation bar in iPhone / HTML5

巧了我就是萌 提交于 2019-11-28 15:47:26
问题 I'm really new to HTML5 for mobile. I use jQuery Mobile for my current app and I have some problems hiding the navigation bar. I found this site: http://m.somethingborrowedmovie.warnerbros.com/. (I do not paste this link to promote the movie.) I was just amazed by this HTML5 site. Does anyone have any idea of the method used to hide the navigation bar? The menu is also really well done. Is there any framework to build apps like this one? 回答1: Try the following: Add this meta tag in the head

What event fires when a WebKit WebApp is “terminated”

僤鯓⒐⒋嵵緔 提交于 2019-11-28 12:50:01
I am in the process of developing a Web App for iOS and am using the DOMApplicationCache. I know that Web Apps can not run in the background, but I still would like to simulate a resume of the app when the user switches to another app and returns to the web app later. In order to do this I at least need to record when the Web App terminates/unloads. But the window.unload does not seem to fire. Does anybody have an idea how to catch the termination of a WebApp running? PS: on a related question, where does the console.log go when apple-mobile-web-app-capable is yes? You can use the "pageshow"

Add to homescreen on mobile phone

非 Y 不嫁゛ 提交于 2019-11-28 05:05:59
问题 How can I code a button to make a shortcut for mobile phone especially on iPhone and Android. I'm using boilerplate as a framework so it would automatically be adding this on the head section <link rel="shortcut icon" href="img/l/apple-touch-icon.png"> . I think this would be my default icon to be used. now I have a button in my html that is setup like this <a href="#"><img src="img/button-shortcut.jpg" /></a> I'm not sure what to put in my href or should I implement it using javascript. I'm

iOS7 Safari: Saving to Home-screen and persist token

徘徊边缘 提交于 2019-11-28 03:43:01
For iOS 6.[something] onwards Cookies, SQLite data and localStorage data for Full Screen Web Apps is stored separately from the Safari data. I have a token that I need persisted to the Home-Screen app when saving to Home-Screen. There is a cookie tester here . And a discussion here . Has anyone found an elegant solution to this problem? Very ugly solutions will also be considered:) Since iOS 5 Apple have been making Home Screen bookmarks more and more isolated in terms of sharing data between the Safari browser and what is now considered a sandbox application. iOS <= 5 :Everything was cool,