Store photo in Firebase Storage.#42
Store photo in Firebase Storage.#42swdevdave wants to merge 1 commit into2.01-firebase-storage-photo-picker-intentfrom
Conversation
|
@swdevdave As others partners here, I tried your code but, the photo doesn't upload at all and doesn't show up on screen either.
|
|
@swdevdave I have also tried your code snippet and it is not working. Do you have any tips? |
|
@swdevdave and @RRGT19 Never mind about my above comment because I have fixed the bug. One of my if statement was blocking the code from running. |
|
Hey guys, I take a look at Firebase documentation and I was able to upload the picture with this code: |
|
its not working... My whole day went with this problem |
its not working for me as well for others and still there is no problem looking in code at all ?? |
|
not working !! |
|
Ey, this code works |
This code will work but it will create a two images in the Firebase Storage, because when you call the
You once uploaded the file in the chat_photos folder and 2nd one outside the chat_photos folder i.e. the root folder. Instead You should do this... |
|
photo uploaded in firebase storage but not visible in app UI |
|
شباب هذة الكود الصحيح والكامل @OverRide |
|
لا تنسو بوضع صلاحيات توضع في ملف ال manifest |
|
Hey guys, according with the documentation: else if (requestCode == RC_PHOTO_PICKER && resultCode == RESULT_OK) { |
|
i have found the solution my code was also not working because |
|
and if u want to ur ui to get updated instantly and if your image get uploaded to the firebase storage and the ui does not get update comment out the code in the onpause and you will be good to go |
i tried it but it not upload in my firebase nor show in app |
|
I tried all the code up here but none of them is working and I am unable to upload the image to storage and display it in chat as well. |
|
package com.google.firebase.udacity.friendlychat; import android.content.Intent; import androidx.annotation.NonNull; import com.firebase.ui.auth.AuthUI; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { } |
|
this is my code |
The following should be updated as there was a recent change to Firebase.
implementation 'com.firebaseui:firebase-ui-auth:4.0.0'