Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial for Firebase #22

Open
abajorat opened this issue Apr 25, 2020 · 4 comments
Open

Tutorial for Firebase #22

abajorat opened this issue Apr 25, 2020 · 4 comments

Comments

@abajorat
Copy link
Contributor

Tutorial for Firebase integration

1. Account creation

Create yourself an account at Firebase

2. Go to the console

Click on the respective link in the upper right corner of Firebase or go here

3. Create new project

Just choose a name and leave everything on default.

4. Add Application

Click on ""Add Android Application to start" or similar. Put the following as package name:
org.nearbyshops.enduserappnew
If you already changed your package name, put the respective name.

5. OPTIONAL Add SHA

Loom up the following link to create a SHA-1:
SHA

6. Add JSON to code

Download the google-services.json, copy the code and just replace the whole code in your Android project in Nearby-Shops-Android-app/app/google-services.json

7. Skip step 3

SUmeet already configured all of this

8. Wait for recognization

Clean project, build and start your app.
Then wait for Firebase to recognize your app.

9. Add database

Click on the database tab, create a new one.
Copy the link and put it into your api_config.properties at databse_url

10. Add Admin SDK

Go to your settings in Firebase(icon on the top of sideboard). Go to Service Accounts.
Then click on "Generate new private key"
Copy the key and paste it into your firebase_admin_sdk_key.json in your container. (Same directory as the api_config.properties file

@abajorat abajorat changed the title Tutorial for Firebasee Tutorial for Firebase Apr 25, 2020
@SumeetMoray
Copy link
Collaborator

Wow that's really wonderful !!!

You took a huge burdon away from me. I won't need to write that tutorial !!

Thanks ... truly appreciated !

@abajorat
Copy link
Contributor Author

you're welcome
It's nothing compared to your project 😄

@chettyfj
Copy link

i can't find api config directory

@KaueNery
Copy link

KaueNery commented Apr 1, 2021

Hi guys, I can't find the api_config.properties file.
And how can I verify if Firebase has recognised my app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants