1

I know I can use the apple-mobile-web-app-status-bar-style meta tag and after adding the web page to the home screen, it will run the app in full screen mode.

My question is if there is any tag, css or javascript I can use to tell mobile safari to do it directly, without having the user adding to the home screen first?

4

3 回答 3

1

You could consider something like PhoneGap that deploys a webapp as a native iphone application. It would also allow you access to things like the accelerometer via javascript calls.

于 2011-05-11T19:20:27.463 回答
0

目前,可悲的是,这无法做到:(

于 2013-03-11T14:00:55.340 回答
0

有一种方法可以在您的 idevice 上自动安装“webclips”。为此,您可以将配置文件有效负载部署到您的设备(.mobileconfig 文件)。

有效负载可以签名或未签名,出于测试目的,未签名的配置文件将显示为不安全。

https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html

使用这样的配置文件的优点是您可以设置它,以便用户无法以标准方式删除“webclip”,必须删除配置文件才能删除应用程序。您也可以使用 PIN 进行保护。

我没有使用此方法注册我的应用程序的一个原因是我无法使用 appcache 清单 (iOS6.x) 使其脱机工作,但自 iOS7.x 以来这可能有所改善

于 2013-10-16T03:36:10.710 回答