Hybrid Mobile应用程序通常被科技行业的开发人员认为不如Native应用程序吗? [英] Are Hybrid Mobile apps generally considered inferior to Native apps by developers in the tech industry?

查看:148
本文介绍了Hybrid Mobile应用程序通常被科技行业的开发人员认为不如Native应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于大学项目,我的小组正计划为Android制作云消息应用程序。最初我们通过研究和使用Ionic Framework和Phonegap来开始开发,以创建混合应用程序。

For a college project, my group was planning on making a cloud messaging app for Android. Initially we began development by studying and using Ionic Framework and Phonegap to create a Hybrid app.

根据我们迄今为止所阅读和学到的内容,我们对Hybrid应用程序的理解是开发允许我们使用Web技术(HTML,CSS Javascript)进行编码,我们非常熟悉它,而不是构建Native应用程序。它还具有在多个平台上运行的优点,只需很小的调整。

Based on what we had read and learnt so far what we understood was with Hybrid app development allows us to code with web technologies(HTML, CSS Javascript) which we were quite familiar with in far less time than building a Native app. It also had the plus of running on multiple platforms with very minor tweaking.

但随着我们前进,我们得到了许多同事和现场人员的一些奇怪反馈这一切都指向一件事;
a对混合应用程序的一般不信任和怀疑。

But as we moved forward we got some strange feedback from many of our colleagues and people in the field which all pointed to one thing; a general distrust and doubtfulness about Hybrid apps.

最终我们决定选择Native应用程序,因为这些反馈和其他原因,但它总是困扰我们为什么人们感觉就是这样。

Eventually we decided to go for a Native app due to this feedback among other reasons but it always bothered us why people felt that way.

推荐答案

是的,一般情绪是Hybrid应用程序不如Native应用程序。虽然这对于更熟悉Web技术的开发人员来说可能会令人沮丧,但它确实有充分理由:

Yes, the general sentiment is that Hybrid apps are inferior to Native apps. While this can be frustrating for developers more familiar with web technologies, it does come for good reason:


  1. 无法与本机交互组件:虽然存在诸如 cordova-plugin-statusbar 之类的插件,但是使用Web技术与本机组件交互和操作存在限制。我个人遇到的一个很棒的(令人沮丧的)问题是当键盘动画时无法在键盘的顶部输入一个输入。这听起来像是一个非问题,直到你看到一个应用程序,这是一个必不可少的功能,如在像Slack这样的聊天应用中。

  2. 300毫秒延迟:虽然现代浏览器开始逐步解决这个问题,Hybrid应用程序上出现的第二个延迟时间使得应用程序感觉很慢而且非当地人。随着越来越多的用户采用 FastClick.js 和一些框架等解决方案,这个问题变得不那么重要了。正如 Ionic 默认消除它。

  3. 仇敌是对的(某种程度上):虽然混合应用程序开发已经走过了漫长的道路,但仍有一些小故障和滞后功能在Native应用程序中不存在。屏幕转换,应用程序切换和电池寿命仍然是出现错误的常见区域,并且可能会持续一段时间,即使它们开始变得越来越不明显。

  4. 有一些很棒的原生解决方案:使用Apple的 Swift 等新语言,代码变得越来越容易用母语。话虽这么说, React Native 等工具属于Native和Hybrid之间的灰色区域。允许开发人员使用JavaScript等友好技术进行编码,但编译成本机代码。

  1. Inability to interact with native components: Although plugins such as cordova-plugin-statusbar exist, there are limitations interacting with and manipulating native components using web technologies. One great (and frustrating) issue I have personally run into is the inability to have an input at the top of they keyboard as the keyboard animates in. This sounds like a nonissue until you look at an app where this is an essential feature such as in a chat app like Slack.
  2. 300ms delay: Although modern browsers are beginning to phase this out, the fraction of a second delay present on Hybrid apps makes the app feel slow and non-native. This issue is becoming less of a factor as more users adopt workarounds such as FastClick.js and some frameworks such as Ionic eliminate it by default.
  3. The haters are right (sort of): While Hybrid app development has come a long way, there are still minor glitches and laggy functions that are just not present in a Native app. Screen transitions, app switching, and battery life are still common areas for bugs to appear and likely will be for some time, even if they are starting to become less and less noticeable.
  4. There are some great Native solutions: With newer languages such as Apple's Swift it is becoming easier to code in a Native language. That being said, tools such as React Native fall into a gray area between Native and Hybrid by allowing developers to code in friendly technologies such as JavaScript but compile into native code.

故事的寓意是它真的取决于什么对您的特定用例很重要。混合应用已经成为一种可行的选择,不再是一个令人尴尬的侧面秀。相反,除了使用Native应用程序之外,还有一些与Native UX交互的次要方法是不可能的。

The moral of the story is that it really depends what is important to your specific use case. Hybrid apps have become a viable option and are no longer an embarrassing side show. Conversely, there are still minor aspects of interacting with the Native UX that are not yet possible except with a Native app.

总的来说,我建议制定项目并确定是否您的应用程序需要Native应用程序的任何好处。使用 Ionic View 应用程序等工具,您可以轻松地将应用程序的基本模型组合在一起并进行测试。一个真实的设备,无论混合应用程序是否适合您。

Overall, I recommend mapping out your project and determining if your app needs any of the benefits of a Native app. With tools such as the Ionic View app it is easy to put together a basic mockup of your app and test on a real device whether or not a Hybrid app will work for you.

这篇关于Hybrid Mobile应用程序通常被科技行业的开发人员认为不如Native应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆