Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Java Library for the Microsoft Push Notification service
Java
Tree: b7cf285273

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/main/java/com/notnoop/mpns
.gitignore
CHANGELOG
LICENSE
README.markdown
pom.xml

README.markdown

java-mpns is a Java client for Microsoft Push Notification service (MPNs). The library aims to provide a highly scalable interface to the Apple server, while still being simple and modular.

The interface aims to require very minimal code to achieve the most common cases, but have it be reconfigurable so you can even use your own networking connections or XML library if necessary.

Links: Installation

Features:

  • Easy to use, high performance MPNS Service API
  • Easy to extend and reuse
  • Easy to integrate with dependency injection frameworks
  • Easy to setup custom notification payloads
  • Supports connection pooling

Sample Code

To send a notification, you can do it in two steps:

  1. Setup the connection

    MpnsService service =
        MPNS.newService()
        .build();
    
  2. Create and send the message

    MpnsMessage notification = MPNS.newMessage()
        .tile().count(2).title("Tile message")
        .build();
    String subscriptionUri = "https://..../"
    service.push(subscriptionUri, notification);
    

That's it!

Contact

Support mailing list: http://groups.google.com/group/java-apns-discuss

Something went wrong with that request. Please try again.