admin管理员组文章数量:1384383
I am trying to get an overview of what kind of native iPhone features I can get access to when I write a Web App (using html/css/javascript, running in Safari).
Meaning: I like to know whether I can get access to features specific to "smartphones" in general and iPhone/iTouch in particular (accelerometer, address book, photo library, the iPhone's unique identifier, camera, pass, available Wifi networks, etc.).
I suppose there must be an overview somewhere, probably on the Apple developer site, but I have trouble finding it, because it's all about native apps now.
I am trying to get an overview of what kind of native iPhone features I can get access to when I write a Web App (using html/css/javascript, running in Safari).
Meaning: I like to know whether I can get access to features specific to "smartphones" in general and iPhone/iTouch in particular (accelerometer, address book, photo library, the iPhone's unique identifier, camera, pass, available Wifi networks, etc.).
I suppose there must be an overview somewhere, probably on the Apple developer site, but I have trouble finding it, because it's all about native apps now.
Share Improve this question asked Nov 19, 2009 at 13:39 Thomas TempelmannThomas Tempelmann 12.2k11 gold badges88 silver badges166 bronze badges4 Answers
Reset to default 3Check out "iPhone Human Interface Guidelines for Web Applications" on Apple developer site.
It does not say so explicitly, but based on what it talks and does not talk about, looks like you can NOT get access to any of the advanced iPhone capabilities that you mention. So, iPhone web apps are basically just web pages that may have an optimized user experience for the iPhone (the above guide has good specific instructions for optimizing the experience).
The only exception seems to be geolocation that seems to be accessible from within the web apps. But this is not because MobileSafari is doing something special about the iPhone; it is simply because the geolocation API is (going to be) part of web standards, and MobileSafari just implements the standard.
Added: looks like you also get a notification when iPhone orientation changes, see the ment below about onorientationchange event.
PhoneGap is not the solution you were looking for, but might be interesting for any web developer, planning apps for smart phones.
You may want to check out iwebkit, it offers some optimizations that may e in handy when developing iPhone web apps. Also, the munity there may be able to help you out in regard with what features you can use.
There is very little you get access to besides what is normally available in a browser. There is an event hook for when the screen orientation changes (onorientationchange), and that's about it.
本文标签: javascriptiPhone Safari Web App Seeking overview of iPhonespecific featuresStack Overflow
版权声明:本文标题:javascript - iPhone Safari Web App: Seeking overview of iPhone-specific features - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744533272a2611163.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论