Firebase Instance ID is deprecated. Please use Firebase Installations instead.
Instance ID provides a unique identifier for each app instance and a mechanism
to authenticate and authorize actions (for example, sending an FCM message).
Once an InstanceID is generated, the library periodically sends information about the
application and the device where it’s running to the Firebase backend. To stop this. see
[FIRInstanceID deleteIDWithHandler:].
Instance ID is long lived but, may be reset if the device is not used for
a long time or the Instance ID service detects a problem.
If Instance ID is reset, the app will be notified via
kFIRInstanceIDTokenRefreshNotification.
If the Instance ID has become invalid, the app can request a new one and
send it to the app server.
To prove ownership of Instance ID and to allow servers to access data or
services associated with the app, call
[FIRInstanceID tokenWithAuthorizedEntity:scope:options:handler].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-02-11 UTC."],[],[],null,["# FirebaseInstanceID Framework Reference\n\nClasses\n=======\n\n\nFirebase Instance ID is deprecated. Please use Firebase Installations instead.\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [InstanceIDResult](/docs/reference/swift/firebaseinstanceid/api/reference/Classes/InstanceIDResult)\n\n `\n ` \n A class contains the results of InstanceID and token query. \n\n #### Declaration\n\n Swift \n\n class InstanceIDResult : NSObject, NSCopying\n\n- `\n ``\n ``\n `\n\n ### [InstanceID](/docs/reference/swift/firebaseinstanceid/api/reference/Classes/InstanceID)\n\n `\n ` \n Firebase Instance ID is deprecated. Please use Firebase Installations instead.\n\n Instance ID provides a unique identifier for each app instance and a mechanism\n to authenticate and authorize actions (for example, sending an FCM message).\n\n Once an InstanceID is generated, the library periodically sends information about the\n application and the device where it's running to the Firebase backend. To stop this. see\n `[FIRInstanceID deleteIDWithHandler:]`.\n\n Instance ID is long lived but, may be reset if the device is not used for\n a long time or the Instance ID service detects a problem.\n If Instance ID is reset, the app will be notified via\n `kFIRInstanceIDTokenRefreshNotification`.\n\n If the Instance ID has become invalid, the app can request a new one and\n send it to the app server.\n To prove ownership of Instance ID and to allow servers to access data or\n services associated with the app, call\n `[FIRInstanceID tokenWithAuthorizedEntity:scope:options:handler]`. \n\n #### Declaration\n\n Swift \n\n class InstanceID : NSObject"]]