FirebaseInstanceID Framework Reference Stay organized with collections Save and categorize content based on your preferences.
Type Definitions
Firebase Instance ID is deprecated. Please use Firebase Installations instead.
The following type definitions are available globally.
@related FIRInstanceID
The completion handler invoked when the InstanceID token returns. If the call fails we return the appropriate
error codeas described below.Declaration
Swift
typealiasInstanceIDTokenHandler=(String?,Error?)->VoidParameters
tokenThe valid token as returned by InstanceID backend.
errorThe error describing why generating a new token failed. See the error codes below for a more detailed description.
@related FIRInstanceID
The completion handler invoked when the InstanceID
deleteTokenreturns. If the call fails we return the appropriateerror codeas described belowDeclaration
Swift
typealiasInstanceIDDeleteTokenHandler=(Error)->VoidParameters
errorThe error describing why deleting the token failed. See the error codes below for a more detailed description.
@related FIRInstanceID
The completion handler invoked when the app identity is created. If the identity wasn’t created for some reason we return the appropriate error code.
Declaration
Swift
typealiasInstanceIDHandler=(String?,Error?)->VoidParameters
identityA valid identity for the app instance, nil if there was an error while creating an identity.
errorThe error if fetching the identity fails else nil.
@related FIRInstanceID
The completion handler invoked when the app identity and all the tokens associated with it are deleted. Returns a valid error object in case of failure else nil.
Declaration
Swift
typealiasInstanceIDDeleteHandler=(Error?)->VoidParameters
errorThe error if deleting the identity and all the tokens associated with it fails else nil.
@related FIRInstanceID
The completion handler invoked when the app identity and token are fetched. If the identity wasn’t created for some reason we return the appropriate error code.
Declaration
Swift
typealiasInstanceIDResultHandler=(InstanceIDResult?,Error?)->VoidParameters
resultThe result containing an identity for the app instance and a valid token, nil if there was an error while creating the result.
errorThe error if fetching the identity or token fails else nil.
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 2021-02-11 UTC.