org.jboss.aerogear:aerogear-simplepush-java-client

Open Source Libraries for Mobile Connectivity

License

License

Categories

Categories

Java Languages JBoss Container Application Servers CLI User Interface
GroupId

GroupId

org.jboss.aerogear
ArtifactId

ArtifactId

aerogear-simplepush-java-client
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

Open Source Libraries for Mobile Connectivity
Project Organization

Project Organization

JBoss by Red Hat
Source Code Management

Source Code Management

https://github.com/aerogear/aerogear-simplepush-java-client

Download aerogear-simplepush-java-client

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.jboss.aerogear : aerogear-simplepush-protocol jar 0.11.0
net.wessendorf.websocket : simple-client jar 0.6.0
net.iharder : base64 jar 2.3.8

test (9)

Group / Artifact Type Version
io.netty : netty-all jar 4.0.23.Final
io.undertow : undertow-core jar 1.1.0.Beta6
io.undertow : undertow-websockets-jsr jar 1.1.0.Beta6
io.vertx : vertx-core jar 2.1.2
io.vertx : vertx-platform jar 2.1.2
org.glassfish.tyrus : tyrus-server jar 1.8.1
org.glassfish.tyrus : tyrus-container-grizzly-server jar 1.8.1
junit : junit jar 4.11
org.slf4j : slf4j-simple jar 1.7.5

Project Modules

There are no modules declared in this project.

Deprecated

SimplePush is no longer maintained by Mozilla, see: https://twitter.com/MozillaWebpush/status/896095563942318080

Aerogear SimplePush Java client

Java lib for receiving SimplePush messages using WebSocket

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)

Getting started

In your pom.xml file add the following:

<dependency>
  <groupId>org.jboss.aerogear</groupId>
  <artifactId>aerogear-simplepush-java-client</artifactId>
  <version>0.1.0</version>
</dependency>

Usage example:

  UnifiedPushClient unifiedPushClient = new UnifiedPushClient("http://localhost:8080/ag-push/rest/registry/device", "4f766e2c-b4da-42f5-8bfb-d7adc4030939",
        "c9af3659-e7ce-4861-bcde-22b4b8b29492");

  client = new SimplePushClient("ws://localhost:7777/simplepush/websocket");
  client.connect();
  client.register(new RegistrationListener() {
    @Override
    public void onRegistered(String channelId, String simplePushEndPoint) {
      final PushConfig config = new PushConfig();
      config.setDeviceToken(simplePushEndPoint);

      unifiedPushClient.register(config);
    }
  });

  client.addMessageListener(new MessageListener() {
    @Override
    public void onMessage(Ack ack) {
      showMessageDialog(frame, "Message received for " + ack);
    }
  });

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

AeroGear

Modern App Dev begins here - RealTime GraphQL and Push

Versions

Version
0.2.0
0.1.0