SimCoderYoutube / UberClone

Uber Clone Android App 👨‍💻 I'll show you how you can do this in the simplest way and terms possible. By the end of this series you'll have learned how the big companies do it and will be able to do the same, you not only will be able to do this app, but you'll be able to put what you learn into your very own projects! In this series, we use Android Native with java to build the project. We use firebase for all our microservice needs like the auth system, database, storage, amongst others. firebase, android studio, and java. In this series, we'll use all of them and you'll learn them by doing an iconic app. Welcome to this Simcoder project and make a Uber Clone!
MIT License
1.02k stars 712 forks source link

Finding driver issue #16

Open Jayrathod192 opened 5 years ago

Jayrathod192 commented 5 years ago

I have implemented code as in your video of finding driver .but i cannot get neaby driver .please help for this asap.

aryaanlambe commented 4 years ago

I have implemented code as in your video of finding driver .but i cannot get neaby driver .please help for this asap.

Has anyone managed to find a solution for this error? P.S. (I know its been close to a year since this has been asked)

aryaanlambe commented 4 years ago

Solved it! Make sure Storage is enabled in Firebase console

siddhusalvi commented 4 years ago

try to replace these programs https://github.com/siddhusalvi/UberGettingDriverLocation

siddhusalvi commented 4 years ago

Issue is in getClosestDriver() replace this line DatabaseReference driverRef = FirebaseDatabase.getInstance().getReference().child("Users").child("Drivers").child(drvierFoundId); with DatabaseReference driverLocation = FirebaseDatabase.getInstance().getReference().child("DriversAvailable");