简体   繁体   English

用Java抽象推送通知

[英]Abstracting Push Notification In Java

My question is : Is there any Push Notification abstraction layer/Framework for Java that separate the interface with the implementation providers (Android and iOS)? 我的问题是:是否存在任何Java推送通知抽象层/框架,用于将接口与实现提供程序(Android和iOS)分开?

The details are below: 详细信息如下:

Here is my use case: 这是我的用例:

  1. User initiates a task through their mobile phones (currently targeting Android and iOS) 用户通过手机启动任务(当前以Android和iOS为目标)
  2. This task would run asynchronously on the server (J2EE based application server) 该任务将在服务器(基于J2EE的应用程序服务器)上异步运行
  3. Once the task is done, I would like the server to notify the completion of the task via Push Notification to the user 任务完成后,我希望服务器通过Push Notification向用户通知任务完成

Now I understand, we could do that through C2DM and there are code to integrate APN via Java from project such as Java APN . 现在我了解了,我们可以通过C2DM做到这一点,并且有代码可以通过Java集成Java APN等项目中的APN

I am basically looking for abstraction layer for Push Notification that abstracts out the interface and provider/implementation layer similar to what JDBC does with the databases and JMS with messaging. 我基本上是在寻找Push Notification的抽象层,该层抽象出接口和提供程序/实现层,类似于JDBC对数据库和JMS进行消息传递的方式。

To reiterate the question: Is there a Java Framework that standardize Push Notification across devices (Android and iOS at least), provide a logical interface and abstract out the implementation layer from me? 重申一下这个问题:是否有Java框架标准化跨设备(至少是Android和iOS)的推送通知,提供逻辑接口并向我抽象出实现层?

If such Java Framework doesn't exists then I will have to create one, but I thought I asked before taking the task myself. 如果不存在这样的Java框架,那么我将不得不创建一个Java框架,但我想我自己完成任务之前就曾询问过。

Urban Airship是一项服务(不是框架),但是它可以帮助您抽象化一些您需要编写的推送通知基础结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM