FirebaseMessaging Framework Reference Stay organized with collections Save and categorize content based on your preferences.
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
typedefvoid(^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
typedefvoid(^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
typedefvoid(^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.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-11 UTC.