![]() Check that your file name matches this exactly. W e can finish up our iOS app setup by clicking Next and skipping through the rest of this. Make sure that the copy items if needed checkbox is checked, and click Finish. Drag this file directly into the Xcode file tree at the same level as your ist in the Runner folder. Īfter you input your bundleId, click Register app and download the configuration file. Mine will be io.launchclub.firebaseexample. Change your bundleId to your unique reverse domain name, so Apple can identify your app when you’re ready to publish to the App Store. Make sure the Runner and the General tab are selected and then you can view the Bundle Identifier. In VSCode, you can do this by right clicking the ios folder and selecting Open in Xcode. We can find our iOS app’s bundleID by opening up our iOS project in Xcode. Just like the Android setup, we have to provide a unique identifier called a bundle ID. If you don’t have Xcode installed, skip ahead to the next section as you will not be able to link your iOS app and Firebase.Ĭlick on Add app and select iOS. We’ve successfully set up our Android app in Firebase, and now it’s time to add our iOS app. ![]() Your version number might be different than mine in the future and that’s completely fine. Īnd then add the google services classpath. Inside of our android directory’s adle, make sure that Google’s Maven repository is present in both the buildscript and allprojects’s repositories. Next we have to add the Firebase SDK to our dependencies. If you have multiple google-services.json files, you may see a (1) or (2) appended to the end of the file name. Let’s drag this in, and double check that the name is exactly google-services.json. This google-services file is a configuration file that links our Android app with Firebase. Ĭlick on Register App and download a file called google-services.json and add it to our app folder in the android directory. There’s more information on this if you hover over the question mark icon, but you can always add this later in your Project Settings. If you’re planning on using features such as dynamic links or google sign in, you have to add a signing certificate. Now go back to Firebase and put in your package name. If you need to support versions below 21, take a look at the Firebase Flutter docs on how to add multidex support manually. This is so I don’t have to manually add multidex, as it’s included in the version 21 and up. While we’re here, I’m also going to set my minSdkVersion to 21. We can do this by using the Find and Replace tool in VSCode. So my application Id is io.launchclub.firebaseexample. We also need to update our applicationId in all our AndroidManifest files and MainActivity.kt. In my case, my website is LaunchClub.io and the name of this app is Firebase Example. Let’s say your app is called Cool and your website is Your application id would be People normally ensure this by using reverse domain name notation. ![]() Android devices and the Google Play Store both use this id to identify your app, so it’s important to make sure your application id is unique and that you never change this once you upload your app to the Google Play Store. Īn application id is a unique identifier for your Android app. Let’s scroll down to the defaultConfig section and change our applicationId. We want to go into the one in the app folder. It’s important to note that there are two adle files: one in the top level android folder, and one in the app folder. We can find this by going into our file tree and finding the adle file. To register our app, we need to give the package name of our application. Now let’s head back over to our Firebase console and tap on the Android icon. You can create a new project with me or use an existing Flutter project. I’ll name my project firebase_example. Once you tap Create Project, your project will take a moment to set up.Īnd now we’re in our Firebase Project. In the left sidebar, we have access to all the different Firebase features such as Authentication, Cloud Firestore, Storage, Functions, and more!īefore we create our iOS or Android project, we need to create our Flutter project. This opens up our Firebase console, where we can tap on Create a project to start creating our Firebase project.Įnabling Google Analytics will give you access to all of these features. Hey everyone! Today I’m going to teach you how to integrate Firebase into your Flutter projects for Android and iOS step by step.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |