Aroma Swift Client

The Official Swift and iOS Client to Aroma


Project maintained by RedRoma Hosted on GitHub Pages — Theme by mattgraham

Aroma Swift Integration Guide

The Official Swift and iOS Client to Aroma

Carthage

Aroma provides easy integration with Carthage.

github "RedRoma/AromaSwiftClient" "develop"

API

Import the Module

Add the following import statement wherever you use the Aroma Client.

import AromaSwiftClient

Setup the Token

Before you can send messages to Aroma, be sure to set the Application Token given when the App was provisioned from within the app.

The Token should look something like this:

abcdefgh-1234-474c-ae46-1234567890ab

Put this in your AppDelegate when the Application Loads.

AromaClient.TOKEN_ID = "abcdefgh-1234-474c-ae46-1234567890ab"

Send a Message

AromaClient.begin(withTitle: "Operation Failed")
    .addBody("Details: \(error)")
    .addLine(2)
    .addBody("For User \(user)")
    .withPriority(.low)
    .send()

Best Practices

Send Important Messages

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 the Urgency

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.

Project Source

Additional info on the Swift Client can be found by visiting the GitHub project.