[[["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 2022-07-27 UTC."],[],[],null,["# Firebase.AppOptions Class Reference\n\nFirebase.AppOptions\n===================\n\nOptions that control the creation of a [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase) App.\n\nSummary\n-------\n\n\n**See also:**\n[FirebaseApp](/docs/reference/unity/class/firebase/firebase-app#class_firebase_1_1_firebase_app)\n\n### Inheritance\n\nInherits from: SystemIDisposable\n\n| ### Constructors and Destructors ||\n|---|---|\n| [AppOptions](#class_firebase_1_1_app_options_1afba46f20dddd29f422a03d2ae5cca59e)`()` Create [AppOptions](/docs/reference/unity/class/firebase/app-options#class_firebase_1_1_app_options). ||\n\n| ### Properties ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ApiKey](#class_firebase_1_1_app_options_1acb63ab64777e2e1a9adc658a941cd4a3) | `string` Gets or sets the API key used to authenticate requests from your app. |\n| [AppId](#class_firebase_1_1_app_options_1aeb6d92b58b2ad249b4b88453894dcc4f) | `string` Gets or sets the App Id. |\n| [DatabaseUrl](#class_firebase_1_1_app_options_1a502e57bbaa790a62e134345032bf9373) | `System.Uri` The database root URL, e.g. \"\u003chttp://abc-xyz-123.firebaseio.com\u003e\". |\n| [MessageSenderId](#class_firebase_1_1_app_options_1a6ee92e470cdb8db54931eae2c716f90a) | `string` Gets or sets the messaging sender Id. |\n| [ProjectId](#class_firebase_1_1_app_options_1acbfb31765c163b29c404228c5531f301) | `string` Gets or sets the Google Cloud project ID. |\n| [StorageBucket](#class_firebase_1_1_app_options_1ae4076f95925babcf7946ce8300c11485) | `string` Gets or sets the Google Cloud [Storage](/docs/reference/unity/namespace/firebase/storage#namespace_firebase_1_1_storage) bucket name, e.g. |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------|--------|\n| [Dispose](#class_firebase_1_1_app_options_1a9e8809f8ce31da543cb2bbbe8ad17d74)`()` | `void` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [LoadFromJsonConfig](#class_firebase_1_1_app_options_1ade70dfe8cfd4e23d3e70fc4dd098268c)`(string json_config)` | [AppOptions](/docs/reference/unity/class/firebase/app-options#class_firebase_1_1_app_options) Load options from a JSON string. |\n\nProperties\n----------\n\n### ApiKey\n\n```c#\nstring ApiKey\n``` \nGets or sets the API key used to authenticate requests from your app.\n\nFor example, \"AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk\" used to identify your app to Google servers.\n\nThis only needs to be specified if your application does not include google-services.json or GoogleService-Info.plist in its resources. \n\n### AppId\n\n```c#\nstring AppId\n``` \nGets or sets the App Id.\n\nThis is the mobilesdk_app_id in the Android google-services.json config file or GOOGLE_APP_ID in the GoogleService-Info.plist.\n\nThis only needs to be specified if your application does not include google-services.json or GoogleService-Info.plist in its resources. \n\n### DatabaseUrl\n\n```c#\nSystem.Uri DatabaseUrl\n``` \nThe database root URL, e.g. \"\u003chttp://abc-xyz-123.firebaseio.com\u003e\". \n\n### MessageSenderId\n\n```c#\nstring MessageSenderId\n``` \nGets or sets the messaging sender Id.\n\nThis only needs to be specified if your application does not include google-services.json or GoogleService-Info.plist in its resources. \n\n### ProjectId\n\n```c#\nstring ProjectId\n``` \nGets or sets the Google Cloud project ID.\n\nThis is the project_id in the Android google-services.json config file or PROJECT_ID in the GoogleService-Info.plist. \n\n### StorageBucket\n\n```c#\nstring StorageBucket\n``` \nGets or sets the Google Cloud [Storage](/docs/reference/unity/namespace/firebase/storage#namespace_firebase_1_1_storage) bucket name, e.g.\n\n\"abc-xyz-123.storage.firebase.com\".\n\nPublic functions\n----------------\n\n### AppOptions\n\n```c#\n AppOptions()\n``` \nCreate [AppOptions](/docs/reference/unity/class/firebase/app-options#class_firebase_1_1_app_options).\n\nTo create a [FirebaseApp](/docs/reference/unity/class/firebase/firebase-app#class_firebase_1_1_firebase_app) object, the [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase) application identifier and API key should be set using AppId and ApiKey respectively.\n\n**See also:** [FirebaseApp.Create()](/docs/reference/unity/class/firebase/firebase-app#class_firebase_1_1_firebase_app_1adc52b81c47e472234af52e44c8e9d696). \n\n### Dispose\n\n```c#\nvoid Dispose()\n``` \n\nPublic static functions\n-----------------------\n\n### LoadFromJsonConfig\n\n```c#\nAppOptions LoadFromJsonConfig(\n string json_config\n)\n``` \nLoad options from a JSON string.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |---------------|-----------------------------------| | `json_config` | JSON string to read options from. | |\n| **Returns** | Returns an [AppOptions](/docs/reference/unity/class/firebase/app-options#class_firebase_1_1_app_options) instance if successful, null otherwise. |"]]