iphone-standalone-web-app

iOS 6 breaks GeoLocation in webapps (apple-mobile-web-app-capable)

烂漫一生 提交于 2019-11-28 03:35:54
I have an app that does a simple textbook navigator.geoLocation.watchPosition(...) that works great in iOS 5.x both in Safari and as a web app (using apple-mobile-web-app-capable meta tag). However, in iOS6, GeoLocation does not work in the webapp. It still works in safari as expected, but when I run the webapp, it prompts me for location permission, then silently fails. I see the location icon, but no events are thrown from watchLocation. I get no error events or any location events. Has anyone run into this? Any workarounds? It's definitely iOS6 specific and also specific to the apple-mobile

How do you keep an iPhone/iPad web app in full screen mode?

拜拜、爱过 提交于 2019-11-28 03:34:57
I have an HTML5 iPad app that works offline. The app essentially consists of 4 html files and 3 aspx files. My cache manifest is setup so that only the html files are available offline, and the aspx files require a network connection. This is all working great! Now, I've gotten to the point where I'm putting the finishing touches on the app and trying to finalize the home screen icons, running in full screen mode, etc. I've added what I believe are the necessary meta tags to make the app initially launch in full screen mode once it's been added to the home screen. The reason I believe the tags

iPad WebApp Full Screen in Safari

[亡魂溺海] 提交于 2019-11-28 03:17:54
Apple says in the Safari HTML reference that the below code is supposed to make the the web-app full screen on iPhone OS 2.1 and later. <meta name="apple-mobile-web-app-capable" content="yes"> But it doesn't seem to work. Is there a way of hiding the title/location bar within Safari in an iPad WebApp? This only works after you save a bookmark to the app to the home screen. Not if you just browse to the site normally. Remco de Jong If you want to stay in a browser without launching a new window use this HTML code: <a href="javascript:this.location = 'index.php?page=1'"> First, launch your

Remove form assistant from keyboard in iPhone standalone web app

不问归期 提交于 2019-11-27 19:28:55
Is it possible to remove the form assistant from the iPhone popup keyboard in a standalone web app? I know the general consensus is that it's not possible in Mobile Safari, but a standalone app runs in a UIWebView , and functions differently in several ways ( example ), so I'm hoping this might be possible. You can see it here right above the keyboard: The Previous and Next buttons cycle between <form> inputs. But I have a single <input> element, so they are disabled. The Done button hides the keyboard, but since I have a height-flexible <ul> (that takes up the space between the keyboard and

iPhone WebApps, is there a way to detect how it was loaded? Home Screen vs Safari?

戏子无情 提交于 2019-11-27 10:45:22
I have an iPhone Web App, and I'm interested in detecting if the app was loaded either from: iPhone Safari iPhone installed web app (via the add to my home screen) which loads without the safari bars. Any ideas? Shaji You can determine whether a webpage is displayed in full-screen mode using the window.navigator.standalone read-only Boolean JavaScript property. https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html if (window.navigator.standalone) { // fullscreen mode } You can detect the mode via Javascript as described above

What event fires when a WebKit WebApp is “terminated”

。_饼干妹妹 提交于 2019-11-27 07:12:28
问题 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

JSONP calls not working with apple-mobile-web-app-capable=“yes”

走远了吗. 提交于 2019-11-27 06:30:40
问题 The Problem: With <meta name="apple-mobile-web-app-capable" content="yes" /> set, all of my jsonp requests are getting denied. I read that by setting content="yes", you cannot change the page. But I was unaware you couldnt request external resources. And this app has to be full screen. Is there way around using this tag to set the iPad to full screen mode on an html5 app? Right now my requests are just being sent to another subdomain and they are all getting denied? Anyone have an idea on how

How do you keep an iPhone/iPad web app in full screen mode?

最后都变了- 提交于 2019-11-27 05:10:46
问题 I have an HTML5 iPad app that works offline. The app essentially consists of 4 html files and 3 aspx files. My cache manifest is setup so that only the html files are available offline, and the aspx files require a network connection. This is all working great! Now, I've gotten to the point where I'm putting the finishing touches on the app and trying to finalize the home screen icons, running in full screen mode, etc. I've added what I believe are the necessary meta tags to make the app

Why HTML5 video doesn't play in IOS 8 WebApp(webview)?

纵然是瞬间 提交于 2019-11-27 02:51:33
Simple HTML5 video plays on safari browser. but after adding it to home screen(Standalone WebApp), it doesn't work. It is working on iOS7 but stopped working on iOS8. <!DOCTYPE html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes" /> <title>HTML5 Video Standalone Test</title> <style> body{ margin:0; } </style> </head> <body> <video src="http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer_480x270_h264aac.m4v" autoplay="autoplay" controls="true" webkit-playsinline /> </body> </html> Please help. Is there any solution for this? Video playback is broken on

iPad WebApp Full Screen in Safari

僤鯓⒐⒋嵵緔 提交于 2019-11-26 23:59:06
问题 Apple says in the Safari HTML reference that the below code is supposed to make the the web-app full screen on iPhone OS 2.1 and later. <meta name="apple-mobile-web-app-capable" content="yes"> But it doesn't seem to work. Is there a way of hiding the title/location bar within Safari in an iPad WebApp? 回答1: This only works after you save a bookmark to the app to the home screen. Not if you just browse to the site normally. 回答2: If you want to stay in a browser without launching a new window