iPhone Web App及优缺点【书摘】

简介: 最近看了一本图书“Building iPhone Apps with HTML, CSS, and JavaScript”,对Web App的开发有了深入的了解 特摘录一些片段,以作为实现选型的依据。
最近看了一本图书“Building iPhone Apps with HTML, CSS, and JavaScript”,对Web App的开发有了深入的了解
特摘录一些片段,以作为实现选型的依据。

http://www.oreilly.com/catalog/9780596805784/

http://examples.oreilly.com/9780596805791/

 

What Is a Web App?

To me, a web app is basically a website that is specifically optimized for the iPhone. The site can be anything from a standard small-business brochure site to a mortgage calculator to a daily calorie trackerthe content is irrelevant. The defining characteristics of a web app are that the user interface is built with web-standard technologies, it is available at a URL (public, private, or behind a login), and it is optimized for the specifics of the iPhone. A web app is not installed on the phone, is not available in the iTunes App Store, and is not written with Objective-C.

What Is a Native App?

In contrast, native apps are installed on the iPhone, have access to the hardware (speakers, accelerometer, camera, etc.), and are written with Objective-C. The defining characteristic of a native app, however, is that its available in the iTunes App Storea feature that has captured the imagination of hordes of software entrepreneurs worldwide, myself included.

 

Pros and Cons

Different applications have different requirements. Some apps are a better fit with web technologies than others. Knowing the pros and cons of each approach will help you make the right decision about which path is appropriate for your situation.

Here are the pros of native app development:

Millions of registered credit card owners are one click away.

Xcode, Interface Builder, and the Cocoa Touch framework constitute a pretty sweet development environment.

You can access all the cool hardware features of the device.

Here are the cons of native app development:

You have to pay to become an Apple developer.

You are at the mercy of the Apple approval process.

You have to develop using Objective-C.

You have to develop on a Mac.

You cant release bug fixes in a timely fashion.

The development cycle is slow, and the testing cycle is constrained by the App Stores limitations.

Here are the pros of web app development:

Web developers can use their current authoring tools.

You can use your current web design and development skills.

You are not limited to developing on the Mac OS.

Your app will run on any device that has a web browser.

You can fix bugs in real time.

The development cycle is fast.

Here are the cons of web app development:

You cannot access the all cool hardware features of the phone.

You have to roll your own payment system if you want to charge for the app.

It can be difficult to achieve sophisticated UI effects.

相关文章
|
17天前
【Azure App Service】PowerShell脚本批量添加IP地址到Web App允许访问IP列表中
Web App取消公网访问后,只允许特定IP能访问Web App。需要写一下段PowerShell脚本,批量添加IP到Web App的允许访问IP列表里!
|
30天前
|
网络协议 API 网络安全
Web实时通信的学习之旅:轮询、WebSocket、SSE的区别以及优缺点
Web实时通信的学习之旅:轮询、WebSocket、SSE的区别以及优缺点
137 0
|
1月前
|
监控 安全 Apache
构建安全的URL重定向策略:确保从Web到App平滑过渡的最佳实践
【10月更文挑战第2天】URL重定向是Web开发中常见的操作,它允许服务器根据请求的URL将用户重定向到另一个URL。然而,如果重定向过程没有得到妥善处理,可能会导致安全漏洞,如开放重定向攻击。因此,确保重定向过程的安全性至关重要。
67 0
|
3月前
|
关系型数据库 MySQL Linux
【Azure 应用服务】在创建Web App Service的时候,选Linux系统后无法使用Mysql in App
【Azure 应用服务】在创建Web App Service的时候,选Linux系统后无法使用Mysql in App
【Azure 应用服务】在创建Web App Service的时候,选Linux系统后无法使用Mysql in App
|
3月前
|
Shell PHP Windows
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
|
3月前
|
Linux 应用服务中间件 网络安全
【Azure 应用服务】查看App Service for Linux上部署PHP 7.4 和 8.0时,所使用的WEB服务器是什么?
【Azure 应用服务】查看App Service for Linux上部署PHP 7.4 和 8.0时,所使用的WEB服务器是什么?
|
3月前
【Azure 应用服务】通过 Web.config 开启 dotnet 应用的 stdoutLog 日志,查看App Service 产生500错误的原因
【Azure 应用服务】通过 Web.config 开启 dotnet 应用的 stdoutLog 日志,查看App Service 产生500错误的原因
|
3月前
|
Linux Python
【Azure 应用服务】Azure App Service For Linux 上实现 Python Flask Web Socket 项目 Http/Https
【Azure 应用服务】Azure App Service For Linux 上实现 Python Flask Web Socket 项目 Http/Https
|
3月前
|
存储 安全 网络安全
【Azure 环境】使用Azure中的App Service部署Web应用,以Windows为主机系统是否可以启动防病毒,防恶意软件服务呢(Microsoft Antimalware)?
【Azure 环境】使用Azure中的App Service部署Web应用,以Windows为主机系统是否可以启动防病毒,防恶意软件服务呢(Microsoft Antimalware)?
|
3月前
|
存储 Linux 网络安全
【Azure 应用服务】App Service For Linux 如何在 Web 应用实例上住抓取网络日志
【Azure 应用服务】App Service For Linux 如何在 Web 应用实例上住抓取网络日志