开发者

Abstracting Push Notification In Java

开发者 https://www.devze.com 2023-03-30 17:47 出处:网络
My question i开发者_StackOverflow中文版s : Is there any Push Notification abstraction layer/Framework for Java that separate the interface with the implementation providers (Android and iOS)?

My question i开发者_StackOverflow中文版s : Is there any Push Notification abstraction layer/Framework for Java that separate the interface with the implementation providers (Android and iOS)?

The details are below:

Here is my use case:

  1. User initiates a task through their mobile phones (currently targeting Android and iOS)
  2. This task would run asynchronously on the server (J2EE based application server)
  3. Once the task is done, I would like the server to notify the completion of the task via Push Notification to the user

Now I understand, we could do that through C2DM and there are code to integrate APN via Java from project such as Java 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.

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?

If such Java Framework doesn't exists then I will have to create one, but I thought I asked before taking the task myself.


Urban Airship is a service (not a framework), but it might help you abstract away some of the push notification infrastructure you'd need to write otherwise.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号