Comments (5)
Hello, Tirgei.
How are you?
I downloaded your app to learn more about firestore and to learn how to use fragments. The project is great and I started to explore it but I have a doubt...
When I book a test drive or when I place an order, nothing happens in firebase and I cannot see anything like a booking or order in the account where I posted the car/part.
I see the next errors:
E/PartActivity$makeOrder: RESULTS: Error: could not handle the request
E/CarActivity$book: RESULTS: {"booker_id":"RQWcPYHuRtSgR7pkH6Q1czEaGvN2","resultCode":0,"description":"Booking created succesfully","seller":"Mario Sandoval"}
These are my rules on firebase:
Realtime Database:
{ "rules": { ".read": "auth != null", ".write": "auth != null" } }
Firestore:
service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write; } } }
How do you solve it? Do you have the same issue? I have not modified the code, I just added the .json archive
I hope you can help me.
Hi Mario.
Glad my project could be of help to you. The app is made up of 2 parts i.e the android app (which should be the one you downloaded) and the Firebase Functions app (which is linked to the project. You can find it here. The Firebase Functions app is the one used to handle placing an order and booking a test driver which I presume are the parts giving you a problem.
You can download the Firebase Functions repo and deploy it to your Firebase so as to have the full functionality.
Incase you need any assistance, please feel free to ask. Thanks.
from automart.
Thank you for your support, Tirgei!
I've deployed the function, as you can see in the next image, but I still have the same issue. It's my first time using functions, so I don't know if I have to do something else.
Btw, your code is well structured and easily understandable.
from automart.
Problem solved. I forgot to change the URL in K.kt
I see that there is a URL for the function sales report, can you provide it? Now I'm interested about learning also about functions and I would like to try it.
Best regard,
Mario.
from automart.
Btw, your code is well structured and easily understandable.
Thanks
from automart.
Problem solved. I forgot to change the URL in K.kt
I see that there is a URL for the function sales report, can you provide it? Now I'm interested about learning also about functions and I would like to try it.
Best regard,
Mario.
Hi,
I have pushed the missing getReports()
function to the Automart Functions repo. You can check it out and test it if it's working as expected.
Yeah you should also learn about Firebase Functions too as they provide a better way of handling functions that you would not want to put in the android app. You can also use it to automatically do stuff like sending notifications to your app users.
Regards,
Tirgei
from automart.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automart.