Ir a la consola

FirebaseInstanceID Framework Reference


The following classes are available globally.

  • A class contains the results of InstanceID and token query.



    class InstanceIDResult : NSObject, NSCopying
  • 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].



    class InstanceID : NSObject