FirebaseInstanceID Framework Reference

Classes

Firebase Instance ID is deprecated. Please use Firebase Installations instead.

The following classes are available globally.

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

    Declaration

    Swift

    classInstanceIDResult:NSObject,NSCopying
  • 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 viakFIRInstanceIDTokenRefreshNotification.

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

    Declaration

    Swift

    classInstanceID:NSObject

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.