iphone-web-app

UIWebView shouldStartLoadWithRequest only fires once when calling a modal view from inside

ぐ巨炮叔叔 提交于 2020-01-04 13:42:14
问题 I have part of my app written in JS and running inside of a WebView. I'm using the UIWebView shouldStartLoadWithRequest method to capture http requests as a means of communicating between JS and obj-c. This works great until I attempt to load a Modal View Controller over my webview from inside the shouldStartLoadWithRequest method. Once this happens, shouldStartLoadWithRequest is no longer called. Sometimes I need to dismiss this modal view controller and go back to the webview and do some

UIWebView shouldStartLoadWithRequest only fires once when calling a modal view from inside

独自空忆成欢 提交于 2020-01-04 13:41:47
问题 I have part of my app written in JS and running inside of a WebView. I'm using the UIWebView shouldStartLoadWithRequest method to capture http requests as a means of communicating between JS and obj-c. This works great until I attempt to load a Modal View Controller over my webview from inside the shouldStartLoadWithRequest method. Once this happens, shouldStartLoadWithRequest is no longer called. Sometimes I need to dismiss this modal view controller and go back to the webview and do some

Hiding Safari User Interface Components on iPhone

筅森魡賤 提交于 2019-12-29 10:36:52
问题 In an attempt to hide the Safari UI components for an web-app bookmarked as a Homescreen Icon. I am using this meta tag <meta name="apple-mobile-web-app-capable" content="yes" /> as specified on iPhone Dev Center but the address bar and toolbar are still there when launched from the home screen icon. What do I need to do different? Does anyone have an example? 回答1: window.top.scrollTo(0, 1); Works on iPhone, but not in iPad. I have been successful hiding the browser components on iPad (so

iPhone apps: Webapps or native?

送分小仙女□ 提交于 2019-12-22 05:28:14
问题 I am planning to create an iPhone apps version for our online webapps. I am still new to iPhone apps development so I don't know whether to choose iPhone native or a webapps that runs on iPhone browser. The requirement is actually pretty basic. The iPhone apps need to submit data and get data from the database that is also used by the webapps. User would have the same access to the webapps, only I want this specific to iPhone, as the user experience would be different using a webapps and

iPhone Web App Cache Persistence

穿精又带淫゛_ 提交于 2019-12-19 04:40:13
问题 How can I write an ASP.NET (C#) application that will render a page can be permanently cached on the iPhone when it is bookmarked as a "Homescreen Icon"? I have tried setting this on the code behind "Response.ExpiresAbsolute = DateTime.MaxValue;" but to no avail. The server code is still executed every time the home screen icon is launched. 回答1: You need to set this up through HTML5 cache and app manifest files. Thw WhatWG group has posted a draft specification. 来源: https://stackoverflow.com

iOS7 itms-services scheme not work?

China☆狼群 提交于 2019-12-18 17:29:17
问题 I have an in-house app which I distribute over a local wifi in release page have a link like this itms-services://?action=download-manifest&url=http://192.168.1.231/app/plist/houseApp/out.plist this worked on iOS 7 Safari but when i add this page to main screen (like web app) the same link didn't work, and apache access.log have no record about /app/plist/houseApp/out.plist this worked in iOS 6 Anybody knows about this? 回答1: It seems Apple have disabled all URL schemas in iOS7 (including

iOS7 itms-services scheme not work?

陌路散爱 提交于 2019-12-18 17:29:13
问题 I have an in-house app which I distribute over a local wifi in release page have a link like this itms-services://?action=download-manifest&url=http://192.168.1.231/app/plist/houseApp/out.plist this worked on iOS 7 Safari but when i add this page to main screen (like web app) the same link didn't work, and apache access.log have no record about /app/plist/houseApp/out.plist this worked in iOS 6 Anybody knows about this? 回答1: It seems Apple have disabled all URL schemas in iOS7 (including

Prevent iPhone from zooming in on `select` in web-app

*爱你&永不变心* 提交于 2019-12-17 17:25:03
问题 I've got this code: <select> <option value="c">Klassen</option> <option value="t">Docenten</option> <option value="r">Lokalen</option> <option value="s">Leerlingen</option> </select> Running in a full-screen web-app on iPhone. When selecting something from this list, the iPhone zooms in on the select -element. And doesn't zoom back out after selecting something. How can I prevent this? Or zoom back out? 回答1: It is probably because the browser is trying to zoom the area since the font size is

iPhone Web App - Session & Current url lost when call answered

痞子三分冷 提交于 2019-12-12 12:29:27
问题 I have a multi-page website that is designed to work as a web-app on an iPhone. It has the usual: <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="default" /> <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> <link rel="apple-touch-startup-image" href="/images/startup.png" /> The site

How to improve the scroll performance of webapp in webview of retina device

我的未来我决定 提交于 2019-12-11 23:03:40
问题 I have a iPad3(ios5): I load my webapp html locally,I disable all the css3 effect like box-shadow and everything I can optimize like what I used to optimized a website, etc. And All my effort focus on css/html(I don't even execute any javascript),yet I still couldn't get to a tolerable fps did I miss something?Is it just a performance issue like a bug or something else in ios5? What's the best practice to improve the scroll performance in webapp? 回答1: I have been struggling with most likely