Samaritan1011001 / Trovami

A live location sharing app built on Flutter and Firebase as backend
258 stars 108 forks source link

Firebase Database Structure #14

Open ZealotYew opened 4 years ago

ZealotYew commented 4 years ago

Hi @Samaritan1011001

I am a newbie. Possible to share the firebase database structure?

FYI, I have try to run the code. It has been run but it struck at login page.

Login through Google account will only loading.

image

Login through normal login will return null.

image

Kindly advise.

Samaritan1011001 commented 4 years ago

Hi I have fixed the above error. You should be able to sign up and sign in. I have also taken out the google sign in due to privacy concerns. Please don't use your real email address during sign up. Thank you.

This the database structure currently, image

It has two main data points, users and groups. Each user in the users list can create a group and it will appear in the groups list. Every time a user updates their location, it's location in the group is also updated.

ZealotYew commented 4 years ago

Thanks for sharing the database structure.

FYI, I have manage to run the app on android but when I try run at iOS, it show white screen.

Sorry that I am asking quite dumb question. May I know how should I debug it so make it work on iOS?

tanmayrauth commented 4 years ago

@Samaritan1011001 @ZealotYew Can you please help me understand, If one needs to setup his own firebase setup. What all changes should he make in the project?

Thanks in advance

ZealotYew commented 4 years ago

Thanks for sharing the database structure.

FYI, I have manage to run the app on android but when I try run at iOS, it show white screen.

Sorry that I am asking quite dumb question. May I know how should I debug it so make it work on iOS?

I have manage to run iOS. Just need to reset rebuild whole project and add the google service json file accordingly.

@Samaritan1011001 @ZealotYew Can you please help me understand, If one needs to setup his own firebase setup. What all changes should he make in the project?

Thanks in advance

@tanmayrauth you need to setup your firebase and insert your google service json

Samaritan1011001 commented 4 years ago

That's good to know! I don't have a Mac so I'll give Code Magic IO a try later sometime and update the IOS part as well.

@tanmayrauth You need to follow the instructions given here : https://firebase.google.com/docs/flutter/setup