class Teak.Notification

Teak Notification scheduling.

Static Methods

Schedule

Schedule a notification to send to the logged in user for a future time.

IEnumerator Teak.Notification.Schedule(string scheduleName,
                                       long delayInSeconds,
                                       Dictionary<string, object> personalizationData,
                                       System.Action<Reply> callback);

The maximum delay for scheduling a notification is 30 days.

Parameters

Name Description

scheduleName

A value used to identify the message creative (e.g. "daily_bonus") in the Teak dashboard, this must already exist.

delayInSeconds

The number of seconds from the current time before the notification should be sent.

personalizationData

Optional information which can be used for templating on the server; or null.

callback

The callback to be called after the notification is scheduled.