![]() ![]() I emulators: Starting emulators: auth, database, storage $ firebase emulators:start -project=demo-friendlychat-android ![]() The port values were defined in the firebase.json file, which was included in the cloned sample code. In your terminal, run the following command from the root of your local codelab-friendlychat-android directory: firebase emulators:start -project=demo-friendlychat-android Make sure to choose the same account you used when creating your Firebase project earlier.Ĥ. This will open a new browser window to complete the login process. Run firebase login to connect the CLI to your Google account. Once you've installed the CLI, running firebase -version should report a version of 9.0.0 or higher: $ firebase -version If you are using Windows, read the installation instructions to get a standalone binary or to install via npm. If you are using macOS or Linux, you can run the following cURL command: curl -sL | bash Install the Firebase CLIįirst you will need to install the Firebase CLI. This provides a safe, fast, and no-cost local development environment to build your app. In this codelab you'll use the Firebase Emulator Suite to locally emulate Firebase Auth, the Realtime Database and Cloud Storage. Implementation("com.firebaseui:firebase-ui-database:8.0.2") Implementation("com.firebaseui:firebase-ui-auth:8.0.2") Implementation(platform(":firebase-bom:32.0.0")) Implementation(":play-services-auth:20.5.0") Id("-services") version "4.3.15" apply false The google-services plugin is required to parse the google-services.json file In this codelab all of the dependencies you will need have already been added for you, but it's important to understand how to add the Firebase SDK to your app: If you see a warning about a google-services.json file missing, don't worry. You should now have the build-android-start project open in Android Studio. In Android Studio, select File > Open, then select the build-android-start directory ( ) from the directory where you downloaded the sample code. For more information, see Step #10 of this codelab. Note: If you want to run the finished app, you have to create a Firebase project in the Firebase console, along with a Firebase Android App that has your app's package name and SHA1. build-android-Completed code for the finished sample app.build-android-start-Starting code that you build upon in this codelab.The "friendlychat-android" repository contains two directories: Familiarity with the Kotlin programming language.Ĭlone the GitHub repository from the command line: $ git clone.To install Java use these instructions to check your version, run java -version. Node.js version 10 or higher (to use the Emulator Suite).How to use the Firebase Local Emulator Suite to develop an Android app with Firebase.How to store binary files in Cloud Storage for Firebase.How to sync data using the Firebase Realtime Database.How to use Firebase Authentication to allow users to sign in.In this codelab, you'll learn how to use the Firebase platform to create a chat app on Android.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |