本文介绍了混合动力VS本地移动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为iOS和Android(SO 2的应用程序)的移动应用程序。该应用程序将使用一些本地移动功能,以及大量的功能有关,显示静态/动态信息。我打算将有关Web应用程序和简单地嵌入网页(HTML5)的移动应用程序(基本上调用的URL和显示信息)。

I need to create a mobile app for iOS and android (so 2 apps). The app will use some native mobile functionality, and lot of functionality is related to displaying static/ dynamic information. I am planning to move the information on web app and simply embed the web pages (HTML5) in the mobile apps (basically call the urls and display info).

这是开发移动应用程序的一种常见的方法是什么?或者可以有问题,下面的混合方法?是否有原生的应用程序在混合应用程序(反之亦然)

Is this a common way of developing mobile apps? Or there can be issues with following hybrid approach? Are there advantages of native app over hybrid app (or vice versa)

谢谢卡迈勒

推荐答案

我大部分时间在原生Android的发展,但我也帮助调试使用交叉编译平台的创建,如PhoneGap的那几个应用程序和交叉编译的应用程序有一些怪癖,它是很好的只是让这个平台为您处理,如果你建立一个本机应用程序。

I've mostly done native Android development, but I've also helped debug a few apps that were created using the "cross-compile" platforms such as PhoneGap and the cross-compiled apps have a few quirks that it's nice to just let the platform handle for you if you build a native app.

例如,对那些我调试最近没有执行处理程序返回按钮的事件,这是一个非常不舒服的用户体验之一。在原生Android应用程序,我认为它是相同的iOS虽然我从来没有尝试过建设IOS的系统处理后退按钮presses你,因为它知道哪些活动是当前运行前,可以重建它的UI。在PhoneGap的,它本质上是包裹在一个Android应用程序中的WebKit浏览器,所以它并没有获得像在backstack。

For example, one of the ones I debugged lately didn't implement handlers for back button events, which was a really uncomfortable user experience. In a native Android app, and I assume it is the same for iOS although I've never tried building for iOs, the system handles back button presses for you, because it knows what Activity was running before the current one and can rebuild it's UI. In PhoneGap, it's essentially a webkit browser wrapped in an Android application, so it doesn't have access to things like the backstack.

如果你要记住,系统是不会处理这些类型的事件对你,你也不需要访问手机上的所有传感器,那么你很可能逃脱使用的其中之一框架

If you keep in mind that the system isn't going to handle those kinds of events for you, and you don't need access to all the sensors on the phone, then you could probably get away with using one of these frameworks

这篇关于混合动力VS本地移动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 00:24