Constants
The following constants are available globally.
-
Notification sent when the upstream message has been delivered successfully to the server. The notification object will be the messageID of the successfully delivered message.
Declaration
Swift
static let FIRMessagingSendSuccess: NSNotification.NameObjective-C
extern NSString *const _Nonnull FIRMessagingSendSuccessNotification -
Notification sent when the upstream message was failed to be sent to the server. The notification object will be the messageID of the failed message. The userInfo dictionary will contain the relevant error information for the failure.
Declaration
Swift
static let FIRMessagingSendError: NSNotification.NameObjective-C
extern NSString *const _Nonnull FIRMessagingSendErrorNotification -
Notification sent when the Firebase messaging server deletes pending messages due to exceeded storage limits. This may occur, for example, when the device cannot be reached for an extended period of time.
It is recommended to retrieve any missing messages directly from the server.
Declaration
Swift
static let FIRMessagingMessagesDeleted: NSNotification.NameObjective-C
extern NSString *const _Nonnull FIRMessagingMessagesDeletedNotification

