具有本地数据库、通知和警报的跨平台移动应用程序 ––在 PhoneGap 中可能吗?
我有一个项目将我为 Android 手机所做的移动应用程序移植到 iPhone(和 Symbian / WP7)。我只是想知道这一切是否可以在 PhoneGap 中完成。我个人的经验为零,Symbian 开发也是如此。据我所知,我认为 PhoneGap 的学习曲线比 Symbian 陡峭。我有相当扎实的 HTML + CSS 背景。
我需要移植的应用程序有...
- 重复通知 – 最重要的功能(有一天 自上次数据库记录以来一个月后的间隔)
- 一个小型本地数据库(SQlite)
- 解析远程 xml 文件(此处可以考虑子浏览器,因为这是 也以 Flash 格式呈现)。
- 地址列表和谷歌地图集成
这一切都可以在 PhoneGap 中以最少的本机代码实现吗?如果我正确理解文档,PhoneGap 不支持本机警报管理器 API,无论如何?我看到了 iPhone 和 Android 的通知插件,所以我认为这个问题可以解决。
任何想法都很好,谢谢!
编辑:
特别是重复后台服务/通知的事情对于 PhoneGap 本身来说似乎很难/不可能,我是对的吗?
有什么好书也欢迎推荐。
也欢迎任何好的 PhoneGap 插件网站。 (除了PhoneGap的官方插件页面)
任何好的开发/学习资源。
I've got a project to port a mobile application I've done for Android phones to iPhone (and Symbian / WP7). I was just wondering if it all could be done in PhoneGap. My personal experience with it is zero, as is with Symbian development too. What I've read, I think the learning curve for PhoneGap is steepish compared to Symbian. I have a pretty solid HTML + CSS background.
The app I need to port has...
- repeating Notifications – most important feature (one day
interval after one month has passed since last db record) - a small local database (SQlite)
- parse remote xml file (child browser could be considered here as this is
also presented in flash format). - list of addresses and google maps integration
Is this all doable in PhoneGap with minimum native code needed? If I understood the docs correctly, PhoneGap does not support native alarm manager API, anyway around this? I saw notification plugins for both iPhone and Android so I think that could be handled.
Any thoughts are all well appriciated, thank you!
EDIT:
Especially that repeating background service/notification thing seems to be hard/impossible with PhoneGap itself, am I correct?
Any good book recommendations are also welcome.
Any good PhoneGap plugins site are also welcome. (In addition to the PhoneGap's official plugin page)
Any good resources for developing / learning.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 PhoneGap 完成这一切。是的。
如果你没有找到一个100%满足你需求的PhoneGap插件,那么扩展PGPlugin并实现它的功能是很容易的。大胆试试吧!!!
You can do all that with PhoneGap. Yes.
If you don't find a PhoneGap plugin that suits your needs 100%, it's easy to extend PGPlugin and implement it's functions. Go for it!!!