My app is gets back to previous page without updating data to database. (Using Android studio + Firebase) This is the java code for the activity This is the log at that time, I had already tried to debug but couldn’t get any solution…………………………………………………………………………….. Answer You should initialize your storage reference before you call its child, so inside your uploadImage(),
Tag: firebase
should i use firestore database to store a boolean value for my button state (pressed/unpressed)
I’m building a food delivery app using Firestore to populate a RecyclerView, I have a button in every view in RecyclerView. I just want to know if I use Firestore boolean to save my buttons state in view, and give permission to the user to change the boolean value when the button is pressed. it will be a good idea
Firebase email+password authentication in Java
I’m trying to use Firebase email and password authentication in Java using their REST API, as their Admin SDK doesn’t provide the needed methods to log in etc., only user management methods. With help from this answer, I’ve managed to put together the following code, which works for correct credentials but when trying to handle errors e.g. USER_NOT_FOUND or INVALID_PASSWORD,
Remove curly braces and equal sign from data retrieved from firebase
So, I am using android studio to make an app that displays data stored in firebase real-time database. The app is simple, it displays the name and phone number from firebase to the app. The app works fine and even displays the data but the only thing is it displays the data/values with curly braces and an equal sign (like
How to check a child value in firebase and hide a button for that user logged in?
I want to hide a Button in my app when the user that is logged in has a specified value in the Realtime Firebase Database. So I have a child where the value changes between Yes or No it depends on what rights the user is having. So I want to hide a Button when a user has the value
Firebase Push notification not receiving in Android12 in Samsung S10 Device After updating Patch Update
I am using a Samsung Galaxy S10 mobile. On February 3rd Security patch was updated on my phone. After the update Push notification was not received in my App. Other App notifications are working fine. Anyone can answer my question, please? What was the reason for not receiving notification? Answer The answer could be because the PendingIntent for that app’s
Firebase data not displaying in Recycler view. How do I display user specific data from firebase in recyclerview?
I have attached the firebase data image at the bottom for reference. I have a list of users. In that few users have a node called Cart. I need to display the data in the cart for that specific user. Below is my Activity code Here is my adapter class Here is my Model class I have a list of
Display data from user uid with Firebase Database
I want to recover data from the uid and then display them in RecyclerView. I managed to recover the child/parent under Withdrawal thanks to the uid. This is what it looks like in Java: String id = … retrieves the child value. So far everything is fine except when I add this under the String id = … : I
java.lang.ExceptionInInitializerError when running flutter release mode
My flutter app works fine in debug mode. But, when I run it with flutter run –release I am getting the following error. I’ve tried some ways like upgrading gradle, upgrading some dependencies to latest versions. But still it’s not solved. Can you give any ideas on how to solve this? Answer I am using flutter and , I have
How to retrieve multiple username from Firestore and assign the username to the correct markers on map
The code shown below is the code used to retrieve the multiple users location from Realtime Firebase and assign to the markers on map: The structure of the real-time firebase is as follow: The result of the code is as follow: When I click on the marker, it only shows the userID of the user. I want the marker to