iphone-standalone-web-app

Remove form assistant from keyboard in iPhone standalone web app

China☆狼群 提交于 2019-11-26 19:56:20
问题 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

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

隐身守侯 提交于 2019-11-26 15:18:51
问题 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? 回答1: 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

iPhone “Bookmark to Homescreen” removes cookies and session?

僤鯓⒐⒋嵵緔 提交于 2019-11-26 12:25:33
问题 Right now I am developing a Web-based Application, where the User has to login first. When I open the Page by iPhone Safari, login and restart Safari, I am still logged in (Cookie & Session ID still set). But when I add this Page with \"Add to Home Screen\", each Time i click the Icon for that page, I have to login again. I did not find any information about that. What can I do so my users can set this page to their home screen as icon and still don\'t have to login each time they open it?

iPhone Safari Web App opens links in new window

岁酱吖の 提交于 2019-11-26 01:43:48
问题 I have problem with web after adding icon to Home Screen. If the web is launched from Home Screen, all links will open in new window in Safari (and lose full screen functionality). How can I prevent it? I couldn\'t find any help, only the same unanswered question. 回答1: I found JavaScript solution in iWebKit framework: var a=document.getElementsByTagName("a"); for(var i=0;i<a.length;i++) { a[i].onclick=function() { window.location=this.getAttribute("href"); return false } } 回答2: The other