@interface TeakNotification
Schedule notifications for the current player or other players to be delivered sometime in the future.
Static Methods
+ scheduleNotificationForCreative:secondsFromNow:personalizationData:
Schedule a notification for this user at a time in the future.
+ (TeakOperation *)scheduleNotificationForCreative:(NSString *)creativeId
secondsFromNow:(int64_t)delay
personalizationData:(NSDictionary *)personalizationData;
+ scheduleNotificationForCreative:withMessage:secondsFromNow:
Use scheduleNotificationForCreative:secondsFromNow:personalizationData: instead |
Schedule a notification for this user at a time in the future.
+ (TeakNotification *)scheduleNotificationForCreative:(NSString *)creativeId
withMessage:(NSString *)message
secondsFromNow:(int64_t)delay;
+ scheduleNotificationForCreative:secondsFromNow:forUserIds:
Schedules a push notification, to be delivered to other users, for some time in the future.
+ (TeakNotification *)scheduleNotificationForCreative:(NSString *)creativeId
secondsFromNow:(int64_t)delay
forUserIds:(NSArray *)userIds;
+ cancelScheduledNotification:
Cancel a previously scheduled push notification.
+ (TeakNotification *)cancelScheduledNotification:(NSString *)scheduleId;
Properties
Name | Type | Description | Access |
---|---|---|---|
|
The identifier for the scheduled notification. |
Get |
|
|
The status of the notification operation. |
Get |
|
|
The identifier for the TeakReward attached to the notification, or nil. |
Get |
|
|
The name of the schedule, from the Teak dashboard, or nil. |
Get |
|
|
The id of the schedule, from the Teak dashboard, or nil. |
Get |
|
|
The name of the creative, from the Teak dashboard, or nil. |
Get |
|
|
The id of the creative, from the Teak dashboard, or nil. |
Get |
|
|
The channel name, from the Teak dashboard, or nil. |
Get |
|
|
The original JSON blob, as an NSDictionary, used to create this structure, or nil. |
Get |
|
|
The deep link associated with this notification, or nil. |
Get |
|
|
The marketing channel for the Teak notification. |
Get |
|
|
YES if this notification will be shown when the game is in the foreground. |
Get |
|
|
YES if the notification operation has completed. |
Get |