The Java Client to the Famed Aroma Service!
COMMAND your Software, with Aroma.
To use, simply add the following maven dependency.
<dependency>
<groupId>tech.aroma</groupId>
<artifactId>aroma-java-client</artifactId>
<version>2.2</version>
</dependency>
First add the Snapshot Repository
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
<dependency>
<groupId>tech.aroma</groupId>
<artifactId>aroma-java-client</artifactId>
<version>2.3-SNAPSHOT</version>
</dependency>
By following a few simple steps, you can connect your Java application with Aroma and start viewing messages on your iPhone.
import tech.aroma.client.Aroma;
Aroma aroma = Aroma.create(APP_TOKEN);
aroma.begin()
.titled("New User")
.text("Email: {}", user.email)
.send();
You can also send messages using a one-shot shorthand way.
aroma.sendLowPriorityMessage("New User", "Email: {}", user.email);
That's really all there is to it.
Try to only Send messages that are actually interesting. You don't want to bombard Aroma with too many diagnostic messages that are better suited for Logging.
Set an Urgency to each message. Think of Urgency like you would a Log Severity Level. Using them allows you and your team to know just how important a message is.