Skip to content

Notification

Configuration

Android

Modify build.gradle

dependencies {
    implementation 'com.senspark.ee:notification:2.8.0'
}

iOS

Modify Podfile

pod 'ee-x/notification', '2.8.0'

Basic usage

Initialization

#include <ee/Cpp.hpp>

auto plugin = ee::PluginManager::createPlugin<ee::INotification>();

Schedule a notification

plugin->schedule(ee::NotificationBuilder()
    .setTicker("ticker")
    .setTitle("title")
    .setBody("body")
    .setDelay(60)
    .setInternal(60)
    .setTag(0));