Type Definitions
The following type definitions are available globally.
-
@related FIRMessaging
The completion handler invoked when the registration token returns. If the call fails we return the appropriate
error code, described byFIRMessagingError.Declaration
Objective-C
typedef void (^FIRMessagingFCMTokenFetchCompletion)(NSString *_Nullable, NSError *_Nullable)Parameters
FCMTokenThe valid registration token returned by FCM.
errorThe error describing why a token request failed. The error code will match a value from the FIRMessagingError enumeration.
-
@related FIRMessaging
The completion handler invoked when the registration token deletion request is completed. If the call fails we return the appropriate
error code, described byFIRMessagingError.Declaration
Objective-C
typedef void (^FIRMessagingDeleteFCMTokenCompletion)(NSError *_Nullable)Parameters
errorThe error describing why a token deletion failed. The error code will match a value from the FIRMessagingError enumeration.
-
Callback to invoke once the HTTP call to FIRMessaging backend for updating subscription finishes.
Declaration
Objective-C
typedef void (^FIRMessagingTopicOperationCompletion)(NSError *_Nullable)Parameters
errorThe error which occurred while updating the subscription topic on the FIRMessaging server. This will be nil in case the operation was successful, or if the operation was cancelled.