AeroGear UnifiedPush Server

Open Source Libraries for Mobile Connectivity

License

License

Categories

Categories

JBoss Container Application Servers
GroupId

GroupId

org.jboss.aerogear.unifiedpush
ArtifactId

ArtifactId

unifiedpush-parent
Last Version

Last Version

2.5.0
Release Date

Release Date

Type

Type

pom
Description

Description

AeroGear UnifiedPush Server
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/aerogear-unifiedpush-server

Download unifiedpush-parent

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • common
  • model
  • migrator
  • push-sender
  • service
  • jaxrs
  • dependencies
  • servers

AeroGear UnifiedPush Server

Overview

The AeroGear UnifiedPush Server is a server that allows sending push notifications to different (mobile) platforms and has support for: * Apple’s APNs (HTTP/2) * Firebase Cloud Messaging

Create Server

Project Info

License:

Apache License, Version 2.0

Build:

Maven

Documentation:

https://docs.aerogear.org

Issue tracker:

https://issues.jboss.org/browse/AEROGEAR

Mailing lists:

aerogear-dev

Prerequisites

Getting started

Cloning the repository

By the following commands you will create a local directory and clone this project.

git clone https://github.com/aerogear/aerogear-unifiedpush-server.git
cd aerogear-unifiedpush-server

Running locally (Standalone)

By the following commands you will create a local directory and clone this project.

mvn clean install -DskipTests;
docker run -p 9999:8080 -it quay.io/aerogear/unifiedpush-configurable-container:master;
docker run -p 8081:80   -it quay.io/aerogear/unifiedpush-admin-ui:3.0.1;

To access this server go to http://localhost:8081/.

ℹ️
The standalone is going to use H2 as database, AMQ provides for the Wildfly using to run the UPS and it will not use the Keycloak.
ℹ️
If you would like to use Docker-Compose see README.

Configuration

Container Configuration

The Unified Push Server build by default creates and registers a Docker formatted container image, quay.io/aerogear/unifiedpush-configurable-container. By default this container uses an in-memory database, in-vm amq messaging, and no authentication. While ideal for testing, for actual use the following environment variables should be set

Environment Variable

Description

KEYCLOAK_SERVICE_HOST

URL of a KeyCloak server providing authentication.

KEYCLOAK_SERVICE_PORT

KeyCloak service port.

POSTGRES_SERVICE_PORT

Port to connect to Postgres database.

POSTGRES_SERVICE_HOST

URL of Postgres database.

POSTGRES_USER

Postgres username to use.

POSTGRES_PASSWORD

Postgres password to use.

ARTEMIS_SERVICE_HOST

Artemis AMQ service URL.

ARTEMIS_SERVICE_PORT

Artemis AMQ service Port.

ARTEMIS_USER

Artemis AMQ service username.

ARTEMIS_PASSWORD

Artemis AMQ service password.

Unified Push Server

The Unified Push Server can be configured with either System Properties (passed to the Java commandline) or Environment Variables. The two options have different formats and the following list describes them using System Property Name/Env Var Name: Purpose.

Environment Variable

Description

CUSTOM_AEROGEAR_APNS_PUSH_HOST

Custom host for sending Apple push notifications. Can be used for testing.

CUSTOM_AEROGEAR_APNS_PUSH_PORT

Custom port for the Apple Push Network host.

CUSTOM_AEROGEAR_FCM_PUSH_HOST

Custom host for sending Google Firebase push notifications. Can be used for testing.

UPS_REALM_NAME

Override Keycloak Realm.

KEYCLOAK_SERVICE_HOST

Override Keycloak authentication redirect.

AEROGEAR_METRICS_STORAGE_DAYS

Override the number of days the metrics are stored (default is 30 days).

ARTEMIS_URL

URL For AMQP Server.

ARTEMIS_PORT

PORT For AMQP Server.

ARTEMIS_PASSWORD

Password for AMQP server.

ARTEMIS_USERNAME

Username for AMQP server.

UPS_DISABLED

a comma separated list of variants to be disabled per their variant type. See org.jboss.aerogear.unifiedpush.rest.annotations.DisabledByEnvironment for more details

DOCS_PATH

File system path for documentation links json file. See [docs-links](./jaxrs/src/main/resources/doc-links.json) as an example

Releasing the UnifiedPush Server

The content of the [Release Process](https://github.com/aerogear/collateral/wiki/Release-Process-(Java)) is valid for this project as well. However, to build the full distribution bundle, you need to fire off the release like:

## prepare the release and define the TAG and adjust the versions:
mvn release:prepare -Dtag=x.y.z.Final -Darguments=-Dgpg.passphrase=$MY_SECRET_PASS_PHRASE -Pdist,test

## run the actual release process and load the artifacts to JBoss Nexus
mvn release:perform -DperformRelease=true -Darguments=-Dgpg.passphrase=$MY_SECRET_PASS_PHRASE -Dgpg.useagent=true -Pdist,test

License

See LICENSE

Contributing

All contributions are hugely appreciated. Please see our Contributing Guide for guidelines on how to open issues and pull requests. Please check out our Code of Conduct too.

Questions

There are a number of ways you can get in in touch with us, please see the AeroGear community.

Found a bug?

If you found a bug please create a ticket for us on [Jira](https://issues.jboss.org/browse/AEROGEAR) with some steps to reproduce it.

org.jboss.aerogear.unifiedpush

AeroGear

Modern App Dev begins here - RealTime GraphQL and Push

Versions

Version
2.5.0
2.2.1.Final
2.1.0.Final
2.0.2.Final
2.0.1.Final
2.0.0.Final
1.3.1.no-auth.Final
1.3.0-no-auth.Final
1.2.4.Final
1.2.3.Final
1.2.1.Final
1.2.0.Final
1.2.0-rc.2
1.2.0-rc.1
1.2.0-beta.2
1.2.0-beta.1
1.2.0-alpha.3
1.2.0-alpha.2
1.2.0-alpha.1
1.1.3.Final
1.1.2
1.1.1.Final
1.1.0.Final
1.1.0-beta.4
1.1.0-beta.3
1.1.0-beta.2
1.1.0-beta.1
1.1.0-alpha.2
1.1.0-alpha.1
1.0.3
1.0.2
1.0.1
1.0.0.Final
1.0.0.Beta2
1.0.0.Beta1
0.11.0
0.10.4