Why we are using MySQL db if we are working with cloud firestore db. Actually I am beginner in firebase technology. So please provide ans to this question.
Please help I get this error VM105:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0 at JSON.parse () at Object.success (main.js:39) at u (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at k (jquery.min.js:2) at XMLHttpRequest. (jquery.min.js:2)
Uncaught FirebaseError: Function DocumentReference.set() called with invalid data. Unsupported field value: undefined (found in field user_2_uuid) chat.js:168 Error adding document: FirebaseError: Missing or insufficient permissions.
you can simply add a flag in firebase database like isView and set initialial value as 0 it means unread when someone view the message then update isView value to 1 it means read and also you can count isView and tell number of unread message
navin ahir watch my recent upload I m uploading videos of real time chat but it is completely js not php but still it will be helpful for crud in firestore
Next problem XD (i guess its my fault again). i done all of your tutorial and created DB etc. When I now open index.php i get the Login field, but when i click on "register" nothing happens. I guess i have to start maybe apache or something? (got XAMPP installed). Sorry for my dumbness :)
This chat is not working. First of all, your provided database structure is missing fields - full name, email. I resolved it but it's not possible to send messages because of this error: Uncaught FirebaseError: Function DocumentReference.set() called with invalid data. Unsupported field value: undefined (found in field user_2_uuid) Uncaught Error in onSnapshot: FirebaseError: Missing or insufficient permissions. I have set email/password authentication in Firebase. but I wonder how Firebase can authenticate somebody if email and password is being stored only in MySQL and not in Firebase?
It is giving following error index.esm.js:77 [2020-04-29T12:10:38.061Z] @firebase/firestore: Firestore (5.7.0): Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=failed-precondition]: The Cloud Firestore API is not available for Datastore Mode projects. This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
RK Tutorial - Rizwan Khan Yes in php myadmin, phpfirebase with 2 tables chat_record and usersand in the firebase i created a document and create a database named chat
Hi Bro, you are downing a great job but On your Site (www.webscript.info/user-post....) for (Create a Firebase) steps are not helpful because it's too old please make a details video on (To Create a Firebase Project visit console.firebase.google.com). can you please do that. which will be very helpful for everyone and it will be appreciated for you also.