Testing Push Notifications in Java

My question is: is there any Push Notification / Framework abstraction layer for Java that shares the interface with the implementation providers (Android and iOS)?

Details below:

Here is my use case:

  • The user launches the task through his mobile phones (currently designed for Android and iOS)
  • This task will be performed asynchronously on the server (on the J2EE-based application server)
  • As soon as the task is completed, I want the server to notify the completion of the task via Push Notification for the user

Now I understand, we could do this through C2DM, and there is code to integrate APN through Java from a project such as Java APN .

I mainly look for an abstraction layer for Push Notification that abstracts the interface and provider / implementation level, similar to what JDBC does with databases and messaging JMS.

To repeat the question: is there a Java Framework that standardizes Push Notification for all devices (at least Android and iOS), provides a logical interface and abstracts the level of implementation from me?

If such a Java Framework does not exist, I will have to create it, but I thought I asked a question before completing the task.

+4
source share
1 answer

Urban Airship is a service (not a framework), but it can help you abstract away the part of the push notification infrastructure that you need to write differently.

+2
source

All Articles