混合移动应用程序是否支持推送通知? [英] Do hybrid mobile apps support Push Notifications?

查看:288
本文介绍了混合移动应用程序是否支持推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

移动开发框架能否与推送通知协同工作?

Are mobile development frameworks capable of working well with Push Notifications?

详情如下:

研究跨平台移动应用开发。看起来使用移动开发框架(如PhoneGap,Titanium等)开发的混合应用程序在使用网络技术(HTML5,JavaScript,CSS)开发时,可以访问核心电话功能(摄像头,加速度计,通讯录等)。

I'm researching cross-platform mobile app development. It seems hybrid apps developed using a mobile development framework like PhoneGap, Titanium, etc provide access to core phone features (camera, accelerometer, address book, etc) while developing using web technologies (HTML5, JavaScript, CSS).

我们有一个明确的要求是使用推送通知向已安装应用程序的设备发送消息,即使应用程序已关闭。我知道每个平台支持不同(苹果推送通知vs C2DM等)。

One definite requirement we have is using Push Notifications to send messages to devices that have the app installed, even when the app is closed. I understand that each platform supports this differently (Apple Push Notifications vs C2DM, etc).

我假设HTML5通知不适合要求,因为(我假设)HTML5通知(Web套接字,SSE)要求应用程序正在运行。 / p>

I'm assuming HTML5 notifications wouldn't fit the requirement since (i'm assuming) HTML5 notifications (Web Sockets, SSE) require the app to be running.

推荐答案

Android上的PhoneGap通过添加插件支持推送通知。请参见此处。我不知道其他平台。 appMobi支持Android和iOS的即时推送通知。请参见此处。我可以找到一些关于钛的模糊参考,但没有具体的。

PhoneGap on Android supports push notifications by adding a plugin. See here. I'm not sure about other platforms. appMobi supports out of the box push notifications for Android and iOS. See here. I can find some vague references for Titanium, but nothing specific.

这篇关于混合移动应用程序是否支持推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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