Web 应用程序与本机应用程序

发布于 2024-10-11 03:09:13 字数 109 浏览 10 评论 0原文

制作/使用网络应用程序的最大限制是什么? 我认为,当您使用从 html5 获得的本地存储、离线浏览和地理功能时,差异非常小(游戏除外)。

使用网络应用程序的最大好处是它们是跨平台兼容的!

What is the biggest limitation of making/using webapps?
I'm thinking that when you use localstorage, offline-browsing and geo-abilities thaht you get from html5 the differences are quite small (except for games).

The great benefit from using webapps is that they are cross-platfrom compatible!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

妄断弥空 2024-10-18 03:09:13

最大的限制之一是对硬件的访问。您无法访问 USB 端口、您可能拥有的专用硬件(打印机、条形码阅读器)和其他东西,当然,您也无法访问当今运行游戏所需的一些非常重要的 API(DirectX、OpenGL) )。

但我同意:与原生应用程序相比,不选择 Web 应用程序的理由越来越少。

One of the biggest limitation is access to hardware. You can't access USB ports, specialized hardware you might have (printers, bardcode readers), and other stuff, and of course, you don't have access to some very important APIs that you need today to run games (DirectX, OpenGL).

But I agree: every day they are fewer reasons to not go with a WebApp instead of a Native APP.

耶耶耶 2024-10-18 03:09:13

对于 iOS:当对 web 应用程序使用地理定位时,用户每次都会收到有关提供位置访问权限的提示,这可能会让用户感到烦恼。原生应用程序,只是第一次。
UI表现也没有原生那么流畅。与本机视图滚动相比,Web 视图中的滚动具有“更慢”的加速。

For iOS: When using geolocation for webapp, the user will get prompt about giving location access every time, which could be annoying for the user. Native app, only the first time.
The UI performance is also not as smooth as native. Scrolling in webview has a "slower" acceleration compared to native view scrolling.

娇纵 2024-10-18 03:09:13

性能是一大区别。当从 Javascript 转换为编译的 C/Objective C 代码时,我发现速度提高了大约 20 倍到 200 倍以上。还可以用本机代码进行实时音频和视频处理,以及底层网络等。

Performance is one major difference. I see from around 20X to over 200X speed improvements when converting from Javascript to compiled C/Objective C code. One can also do real-time audio and video processing in native code, as well as low-level networking, etc.

筑梦 2024-10-18 03:09:13

我看到的一个有趣的限制(HTML5 方面)是从知识产权的角度来看的。由于大量代码(原始 JavaScript + HTML)暴露给用户,因此您必须仔细决定哪些组件将对最终用户“开放”。不知道有任何标准方法可以在 IP 离开服务器后锁定或隐藏您的 IP。

One interesting limitation (HTML5-wise) I see is from a point of intellectual property. Since a lot of code (raw JavaScript + HTML) is exposed to the user, you have to carefully decide which components will be "open" to end users. Not aware of any standard way to lock or hide your IP once it leaves your server.

晨曦÷微暖 2024-10-18 03:09:13

Web 应用程序非常适合访问多个硬件设备,您可以更快地更新应用程序,因此反馈也更快。但是,您的用户将需要始终在线的互联网连接才能使用您的网络应用程序,与本机(离线)应用程序相比,这可能是他们最大的缺点。

Webapps are great for reaching multiple hardware devices, you can update your app a lot faster, thus feedback is quicker. However, your users will require an always-on internet connection to use your webapp, that's probably the biggest negative about them in comparison to a native (offline) app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文