Java Microsoft Push Notification Service Library

Open Source Libraries for Mobile Connectivity

License

License

Categories

Categories

Java Languages JBoss Container Application Servers
GroupId

GroupId

org.jboss.aerogear.windows
ArtifactId

ArtifactId

java-mpns
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

Java Microsoft Push Notification Service Library
Open Source Libraries for Mobile Connectivity
Project URL

Project URL

http://aerogear.org/push
Project Organization

Project Organization

JBoss by Red Hat
Source Code Management

Source Code Management

https://github.com/aerogear/java-mpns

Download java-mpns

How to add to project

<!-- https://jarcasting.com/artifacts/org.jboss.aerogear.windows/java-mpns/ -->
<dependency>
    <groupId>org.jboss.aerogear.windows</groupId>
    <artifactId>java-mpns</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.jboss.aerogear.windows/java-mpns/
implementation 'org.jboss.aerogear.windows:java-mpns:0.3.0'
// https://jarcasting.com/artifacts/org.jboss.aerogear.windows/java-mpns/
implementation ("org.jboss.aerogear.windows:java-mpns:0.3.0")
'org.jboss.aerogear.windows:java-mpns:jar:0.3.0'
<dependency org="org.jboss.aerogear.windows" name="java-mpns" rev="0.3.0">
  <artifact name="java-mpns" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jboss.aerogear.windows', module='java-mpns', version='0.3.0')
)
libraryDependencies += "org.jboss.aerogear.windows" % "java-mpns" % "0.3.0"
[org.jboss.aerogear.windows/java-mpns "0.3.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.httpcomponents : httpclient jar 4.3.6
org.slf4j : slf4j-api jar 1.6.1
org.slf4j : jcl-over-slf4j jar 1.6.1

provided (1)

Group / Artifact Type Version
commons-logging : commons-logging jar 1.1.1

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.mockito : mockito-all jar 1.9.5

Project Modules

There are no modules declared in this project.

Deprecated

this module is no longer maintained

java-mpns Build Status

Note: This is a maintained fork of https://github.com/notnoop/java-mpns

Project Info
License: Apache License, Version 2.0
Build: Maven
Documentation: https://aerogear.org/push/
Issue tracker: https://issues.jboss.org/browse/AGPUSH
Mailing lists: aerogear-users (subscribe)
aerogear-dev (subscribe)

java-mpns is a Java client for Microsoft Push Notification service (MPNs). The library aims to provide a highly scalable interface to the Microsoft Push 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.

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
  • Supports message delegates and callbacks

Sample Code

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

  1. Declare Maven dependency

     <dependency>
         <groupId>org.jboss.aerogear.windows</groupId>
         <artifactId>java-mpns</artifactId>
         <version>0.3.0</version>
     </dependency>
    
  2. Setup the connection

     MpnsService service =
         MPNS.newService()
         .build();
    
  3. 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!

Documentation

For more details about the current release, please consult our documentation.

Development

If you would like to help develop AeroGear you can join our developer's mailing list, join #aerogear on Freenode, or shout at us on Twitter @aerogears.

Also takes some time and skim the contributor guide

Questions?

Join our user mailing list for any questions or help! We really hope you enjoy app development with AeroGear!

Found a bug?

If you found a bug please create a ticket for us on Jira with some steps to reproduce it.

org.jboss.aerogear.windows

AeroGear

Modern App Dev begins here - RealTime GraphQL and Push

Versions

Version
0.3.0
0.2.0
0.1.0