Skip to content Skip to sidebar Skip to footer

Addonfilurelistener Being Called When I Try To Upload Images To Firebase Storage Android

I am new to firebase storage. Just so I could learn it, I am trying to upload an image from ImageView to firebase storage. My app has a button. When I click on the button, the imag

Solution 1:

Solved it. Needed to update google play services and changed my firebase storage rules to this:

service firebase.storage {
  match /b/savephoto-a1cc3.appspot.com/o {
    match /{allPaths=**} {
        allow read, write;
      }
  }
}

Solution 2:

it worked for me. first, you should check rules as this:

service firebase.storage {
  match /b/fbstorage-fd9ef.appspot.com/o {
    match /{allPaths=**} {
      allow read, write;
    }
  }
}

second, you need check and update your Google Play services by link: (important)

https://play.google.com/store/apps/details?id=com.google.android.gms&hl=en

then rerun app. Goodluck!

Solution 3:

For me I found that the emulator does not have play services.So i install it from sdk Manager of android studio and create a new emulator.Finally, it run on that emulator.Hope it will help out.

Post a Comment for "Addonfilurelistener Being Called When I Try To Upload Images To Firebase Storage Android"