Html 如果 IBM Worklight 最终使用 PhoneGap,为什么还要使用它?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12403319/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why use IBM Worklight if it ultimately uses PhoneGap?
提问by iVipS
Actually i have to build a cross platform application(for iphone and android only) and the client is emphasizing to use IBM Worklight for this. After searching about Worklight i came to know that it internally uses PhoneGap(Apache Cordova). Now my question is if worklight internally uses phonegap then why not directly use phonegap. I need your advice on this. Please suggest the thing that separates worklight from phonegap. Thanks in advance.
实际上,我必须构建一个跨平台应用程序(仅适用于 iphone 和 android),并且客户端强调为此使用 IBM Worklight。在搜索了 Worklight 之后,我才知道它在内部使用 PhoneGap(Apache Cordova)。现在我的问题是如果 worklight 内部使用 phonegap 那么为什么不直接使用 phonegap。我需要你的建议。请建议将工作灯与电话间隙分开的东西。提前致谢。
回答by HarryH
IBM Worklight is a full platform for development. There are a lot of things that you can do even within Worklight that you can't do alone with a PhoneGap library like access common controls more native to the device (Options Menu, busy indicator, tabbars, etc). Some things you have to find plugins for. The newest version of IBM Worklight uses PhoneGap 2.2. I could probably go on for awhile, but check out my blog about the differences in a comparison view.
IBM Worklight 是一个完整的开发平台。即使在 Worklight 中,您也可以执行许多使用 PhoneGap 库无法单独完成的事情,例如访问设备更原生的常用控件(选项菜单、繁忙指示器、标签栏等)。有些事情你必须找到插件。最新版本的 IBM Worklight 使用 PhoneGap 2.2。我可能会继续一段时间,但请查看我的博客,了解比较视图中的差异。
http://www.open-logix.com/enterprise-mobility-blog/ibm-worklight-and-phonegap-comparison/?
http://www.open-logix.com/enterprise-mobility-blog/ibm-worklight-and-phonegap-comparison/?
Other things worth mentioning:
其他值得一提的事情:
The server is also a big portion which does centralized back-end connectivity with adapters, used for offline encrypted storage, unified push notifications and SMS delivery, and more.
服务器也是与适配器进行集中后端连接的很大一部分,用于离线加密存储、统一推送通知和 SMS 传递等。
The management console works with the server to provide a MAM solution. So you can force update/disable applications, manage versions, view some device statistics and monitor pushes.
管理控制台与服务器一起提供 MAM 解决方案。因此,您可以强制更新/禁用应用程序、管理版本、查看一些设备统计信息和监控推送。
The IDE works in conjunction with the Native SDK's and IDE's. So if you are building for Android, it will build an Android project to compile and export within the same IDE. For iPhone, it creates all the project layers for an XCODE project. You may have to tweak some settings in xcode to make sure it compiles right, but I generally haven't had issues.
IDE 与 Native SDK 和 IDE 一起工作。因此,如果您为 Android 构建,它将构建一个 Android 项目以在同一 IDE 中编译和导出。对于 iPhone,它会为 XCODE 项目创建所有项目层。您可能需要调整 xcode 中的一些设置以确保它正确编译,但我通常没有遇到问题。
The Mobile Browser simulator is nice for testing web code with PhoneGap capability testing within the browser as well.
移动浏览器模拟器也非常适合在浏览器中使用 PhoneGap 功能测试来测试 Web 代码。
Shell coding is integrated and you can create a common shell for your App brand.
集成外壳编码,您可以为您的应用品牌创建一个通用外壳。
The new WYSIWYG is pretty nice as well and provides common HTML support plus jQuery Mobile components and/or dojo mobile.
新的 WYSIWYG 也非常好,提供常见的 HTML 支持以及 jQuery Mobile 组件和/或 dojo mobile。
回答by Raanan Avidor
PhoneGap is great, that is why IBM Worklight use it.
PhoneGap 很棒,这就是 IBM Worklight 使用它的原因。
PhoneGap is a great bridge between a web developed application and the device (GPS, camera, etc.), but that is all it is.
PhoneGap 是 Web 开发的应用程序和设备(GPS、相机等)之间的桥梁,但仅此而已。
You need an IDE to develop the application.
您需要一个 IDE 来开发应用程序。
You need to connect to back-ends.
您需要连接到后端。
You need to authenticate.
您需要进行身份验证。
You need to think about security.
您需要考虑安全性。
You still need to manage the life cycle of the application.
您仍然需要管理应用程序的生命周期。
PhoneGap is an important part of an IBM Worklight application, but it is only a part.
PhoneGap 是 IBM Worklight 应用程序的重要组成部分,但它只是一部分。
回答by Ocelot
Main difference between IBM Worklight and Phonegap is server part. Phonegap has no feature related to server part but IBM offers IBM Worklight Server feature.
IBM Worklight 和 Phonegap 之间的主要区别在于服务器部分。Phonegap 没有与服务器部分相关的功能,但 IBM 提供了IBM Worklight Server 功能。
Second, IBM has whole package(IDE ,console etc) but Phonegap offer a library only.At last IBM has the supportthat Phonegap lacks. (I don't know where you found that IBM worklight using Phonegap but both of them are using web-view component).
其次,IBM 拥有完整的软件包(IDE、控制台等),但 Phonegap 仅提供一个库。IBM 终于获得了 Phonegap 所缺乏的支持。(我不知道你在哪里发现 IBM worklight 使用 Phonegap 但他们都使用web-view 组件)。
回答by WhTiggaW
It is better to use Worklight
than Phonegap
as the former has direct supportfor the following:
- SMS Delivery Options
- Push Notifications
- Direct Update
- Version management
- Business Intelligence Reporting
- Force Update (or) Disable App
这是更好地使用Worklight
比Phonegap
为前者的直接支持了以下内容:
- SMS Delivery Options
- Push Notifications
- Direct Update
- Version management
- Business Intelligence Reporting
- Force Update (or) Disable App
Moreover it has other features like1. Authentication framework
2. Mobile Browser Simulator
3. Encrypted Offline Storage
4. Jsonstore
which makes it much more easier to use.
此外,它还具有其他功能,例如1. Authentication framework
2. Mobile Browser Simulator
3. Encrypted Offline Storage
4. Jsonstore
使其更易于使用。