FirebaseMessaging Framework Reference

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 by FIRMessagingError.

    Parameters

    FCMToken

    The valid registration token returned by FCM.

    error

    The 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 by FIRMessagingError.

    Parameters

    error

    The 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.

    Parameters

    error

    The 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.