BatchInboxNotificationContent
@interface BatchInboxNotificationContent
BatchInboxNotificationContent is the model for notifications fetched using the Inbox API Use it to display them in the way you like.
-
Unique notification identifier. Do not make assumptions about its format: it can change at any time.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) int *identifier;
-
Notification message, if present. This can be nil if filtering of silent notifications has been disabled on the inbox fetcher, meaning that this notification is silent (shows nothing to the user).
Declaration
Objective-C
@property (nonatomic, readonly, nullable) BatchInboxNotificationContentMessage *message;
-
Deprecated
The title should be accessed via the message property
Notification title (if present) @deprecated
Declaration
Objective-C
@property (nonatomic, readonly, nullable) int *title;
-
Deprecated
The body should be accessed via the message property
Notification alert body
For compatibility, this will be the empty string when representing a silent notification, if their filtering has been disabled on the fetcher. @deprecated
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) int *body;
-
URL of the rich notification attachment (image/audio/video)
Declaration
Objective-C
@property (nonatomic, readonly, nullable) int *attachmentURL;
-
Raw notification user data (also called payload)
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) int *payload;
-
Date at which the push notification has been sent to the device
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) int *date;
-
Flag indicating whether this notification is unread or not
Declaration
Objective-C
@property (nonatomic, readonly) int isUnread;
-
Deprecated
You should refresh your copy of the data with allFetchedNotifications after using markNotificationAsDeleted.
Flag indicating whether this notification is deleted or not.
This might change if you hold a pointer to a notification that you asked to be deleted @deprecated
Declaration
Objective-C
@property (nonatomic, readonly) int isDeleted;
-
Flag indicating whether this notification is silent or not
Declaration
Objective-C
@property (nonatomic, readonly) int isSilent;
-
The push notification’s source, indicating what made Batch send it. It can come from a push campaign via the API or the dashboard, or from the transactional API, for example.
Declaration
Objective-C
@property (nonatomic, readonly) int source;