I have an android flutter app that I created using Android Studio on a Windows machine. However, now I need to move everything to a Mac iOS machine. This has been a true test of my patients.
I need to get the GoogleServices-Info.plist file for a Firebase project that already exists. I have followed the directions on Firebase but I don't see any download button.
1. Go to your. Project settings in the Firebase console.
2. In the Your apps card, select the bundle ID of the app for which you need a config file.
This Firebase project already existed so I don't know how to get the file.
Click on your existing Firebase project at https://console.firebase.google.com/
Select your iOS/Android app, then click on the cog icon to access to the setting page.
Click on the Download icon.
You can see the full manipulation here:
Related
I have an Android project where I am using Google Cloud authentication service, where I downloaded the google-services.json file and everything is working.
Now that using Firebase's Dynamic Link service, where it asks to download another google-services.json file and put it in the same location.
I don't know how to proceed in this case, any tips?
If you are using the same project then feel free to use the last one google-services.json that it suggests downloading because it will already include your previous configuration.
You can easily check this if you compare the first and second one jsons.
Make sure that you only have this most recent downloaded config file in your app.
You can get the most recent config file for your Android app in Firebase Console at any moment.
Go to your Project settings in the Firebase console.
In the Your apps card, select the package name of the app for which you need a config file.
Click google-services.json.
I want to set up Crashlytics in my app and I have searched for information and first I have to link my app to a Firebase project.
I have seen that this can be done inside Android Studio itself (I have seen that inside Android Studio if I go to Tools->Firebase->Crashlytics->Get started with Firebase Crashlytics, there are 3 steps to follow to link my app -> Step 1: "Connect your app with firebase", Step 2: Add Crashlytics SDK and plugin to your app, Step 3: "Force a test crash to finish setup", Step 4: "Next Steps".
But I have seen also that if I go to the firebase console on the web, there is also like a guide to follow and fill in information within the Firebase web with 3 steps -> Step 1: "Register app", Step 2: "Download config file", Step 3: "Add Firebase SDK" Step 4: "More Steps".
Do I have to link my app to Firebase in both Android Studio and Firebase Console web? Or do I have to link it in only one place and it doesn't matter if it's in Android Studio itself or it is on the Firebase Console web?
It is never required to use Android Studio with Firebase. You can do everything through the console and any code editor of your choice. Android Studio integration is just a convenience for many developers.
Simplest way to register your app on firebase (i.e enter application name, package name and SHA) then download the config file place inside the app folder install the dependencies of firebase and crashlytics after that you are done
To make a connection between a Firebase project and your Android app, two things need to happen:
Your Firebase project needs to know about the Android app that connects to it.
The Android app itself needs to know what Firebase project it needs to connect to.
The Firebase Assistant in Android Studio can be used to take care of both of these steps.
Alternatively, you can do both in the Firebase console, where they are step 1 and 2 in process you've seen/mentioned.
So you can follow either one of the processes you outlined, but there's no need to do both.
I'm working on a continuous project creation from an administrator tool. This tool is able to create a create a gitlab and jenkins project from template.
The android template use Firebase crashlytics and we all know that google-services.json file will be mandatory to use Firebase service.
After creating the project from our template using our administrator tool, jenkins build failed because of lack of google-services.json file.
So to retrieve google-services.json file, we need to create project firebase and android application. All of these actions are manual. My question is there a way to get this file using kind of Firebase APIs to create project and android application ?
Thanks
In android studio you get the option to link your Firebase Account. Double tap Shift and type Firebase You should get the assistant and then follow the instructions.
I was creating an android app for a school project and i have integerated firebase into it. Later i realized that i should keep a seperate copy of my app on other computer.I once tried to copy and paste my app onto another computer and open it in android studio but it didnt go well.
Any ideas how to do this such that firebase database remains same.
Typically people use a source control tool such as git to store their project source code. Firebase has nothing to do with this.
Nothing changes when you copy project files to other machines. If you are using Firebase Authentication, you will also have to copy your debug signing keys, or add the SHA1 hash of your new key to the project in the console, but this has nothing to do with your project files.
I am new to Android Studio and have just runned through the tutorial
https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/GcmEndpoints
without much trouble.
However, when I try to deploy my backend to the app server it promts me: "You must be logged in to perofrm this action".
I have no idea of why it teels that. I can easely find me project on the list, and Im logged in to my google acount on various browsers including Chrome.
Have seached the internet, but found no one else with the problem before.
Best Regards Allan
It's possible that your auth has been done a little while ago and the system cannot properly see you authenticated anymore, which would explain such a behavior.
At the bottom of the list of projects, you should see a "add account" button. Click on this and just re-auth. Should clear the bad tokens :).
Steps For Intrgration of App Engine Endpoints Module.
.....................................................
1-:Create an Google Devloper Console Account.Create a new project after completing the project creation they give you a Project id and project no.
2-:Open Android Studio File-->New-->New Project.
3-:After Project creation is completed Right Click On your project select Module-->Google Cloud Module as shown in images folder chouse_module image.
4-:When you Select The Google Cloud Module Then choose "App Engine Java Endpoints Module".as shown in images folder endpoints image.
5-:As soon as the backend module is added to your project and Gradle sync finishes,a new run configuration with your backend's module is created.
6-:Rebuild your project via "Build → Rebuild Project"
7-:Now Check Your Backend started sucesfully naivigate to http://localhost:8080.if your Backend started sucessfully you saw the screen as as shown in images folder devappserver-endpoints image.
Connecting your Backend to your android project.
...........................................................
8-:After Backend Module is created and added strong libraries is automatically genrated for you.
9-:To start sending requests to the added Cloud Endpoints backend API.you Have to created one Async Class in your Project file.you Can Get the Async task class in required Packages folder with name AsynctaskClass.java
10-:To make the actual call, invoke this AsyncTask from one of your Android activities.In this way :: new EndpointsAsyncTask().execute(new Pair(this, "Message"));
11-:Ckeck that you granted an internet permission in menifest or not.
12-:Now check that you have accese to local host as shown in point 7.
13-:Its time to Check in Emulator Change your Run confrigation and run your project If everything goes well, you should see the following toast in your app as shown in images folder emulator-Toast image.
Deploying the backend live to App Engine
......................................................
14-:If your backend is working locally, you can deploy it to Google App Engine.
Stop the backend, if it is running locally, by selecting Run > Stop.
Than navigate to Build > Deploy Module to App Engine.
15-:update your src/main/webapp/WEB-INF/appengine-web.xml file's property and replace myApplicationId with the ID of the project that you just created.as shown in point 1.
16-: you can see the screen as shown in images folder deploy-image image.
17-:In the Deploy to you have to select the project you created on Google Devloper Console.as shown in point 1.
18-:Put the version name and click deploy Button.
19-:Once you have deployed your backend to App Engine, you can connect your Android app to it by modifying AsyncTask class defined in point 9 replace the perticular lines shown in ReplaceCode.java file in required Packages folder.
20-:Now you can communicate with your new App Engine backend!.
For More Info -:
https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints.
https://cloud.google.com/tools/android-studio/app_engine/add_module?hl=en.
Ive never used android studio but Im sure its like eclipse sdk puglin.
There is an easy way to deploy ur apps on ur mobile device, but before u get to that point u need to eanable android mobile on debug mode (On settings,developer options).Once u have done that, Im pretty sure there is an option which lets u run ur app on android device making much smother than doing it virtual app.
Hope I helped ya...
Use the gradle commands.
Open the terminal within android studio and run
gradlew appengine:update
Or navigate to the gradle project window and look for the google appengine folder under your backend. And double click the appengineUpdate command.
Adding the backend with android studio should automatically add the appengine plugin for gradle in your backend build.gradle file like this. This plugin is allows you to run the appengine update command.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.18'
}
}
I was facing similar issue using Android Studio Ver2.2 in Ubuntu 14.04
I was not able to do sign-in into Android Studio using the SignIn icon from top-left of the Android Studio IDE. When signin icon clicked, a pop-up says that Sign-in using external browser but nothing would pop-up.
Build->Deploy to app Engine->Deploy to tab was also showing the same message as above but no browser would pop up
Even gradlew api:appengineUpdate was not working. (no browser would pop up).
Problem got resolved by changing the File->Setting->Web Browsers (it was listing browsers Chrome, Firefox, Safari in that order). The Default Browser was set to "First listed". I unchecked the chrome and my problem got solved, I was able sign-in and deploy my project.
I spent lot of time finding solution for this, thought it might help others, so posting it.
I had the same issue.
I did not realize it at first but when you get this message, you simply click on the dropdown "Deploy To", and then it invites you to log into your google account.
It is not very intuitive if your project is already selected by default.