FIROptions


@interface FIROptions : NSObject <NSCopying>

This class provides constant fields of Google APIs.

  • Returns the default options. The first time this is called it synchronously reads GoogleService-Info.plist from disk.

    Declaration

    Objective-C

    + (nullable FIROptions *)defaultOptions;
  • An iOS API key used for authenticating requests from your app, e.g. @AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk, used to identify your app to Google servers.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *APIKey;
  • The bundle ID for the application. Defaults to [[NSBundle mainBundle] bundleID] when not set manually or in a plist.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *_Nonnull bundleID;
  • The OAuth2 client ID for iOS application used to authenticate Google users, for example @12345.apps.googleusercontent.com, used for signing in with Google.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *clientID;
  • The tracking ID for Google Analytics, e.g. @UA-12345678-1, used to configure Google Analytics.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *trackingID;
  • The Project Number from the Google Developer’s console, for example @012345678901, used to configure Google Cloud Messaging.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *_Nonnull GCMSenderID;
  • The Project ID from the Firebase console, for example @abc-xyz-123.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *projectID;
  • The Android client ID used in Google AppInvite when an iOS app has its Android version, for example @12345.apps.googleusercontent.com.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *androidClientID;
  • The Google App ID that is used to uniquely identify an instance of an app.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *_Nonnull googleAppID;
  • The database root URL, e.g. @http://abc-xyz-123.firebaseio.com.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *databaseURL;
  • The URL scheme used to set up Durable Deep Link service.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *deepLinkURLScheme;
  • The Google Cloud Storage bucket name, e.g. @abc-xyz-123.storage.firebase.com.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *storageBucket;
  • The App Group identifier to share data between the application and the application extensions. The App Group must be configured in the application and on the Apple Developer Portal. Default value nil.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *appGroupID;