Fetching Image Issue from firebase using Picasso

后端 未结 1 428
旧时难觅i
旧时难觅i 2021-01-28 09:09

I have done with the text feteching from the database, buit while fetching image from the database using picasso the images are not loading the phone and the logcat is displayin

相关标签:
1条回答
  • 2021-01-28 09:34

    You are getting the follwing error:

    java.util.concurrent.ExecutionException: com.google.firebase.internal.api.FirebaseNoSignedInUserException: Please sign in before trying to get a token.

    Because by default, your are security rules require your user to be authenticated.

    allow read, write: if request.auth != null;
    

    To solve this, you can either make sure your user is authenticated before trying to diplay the image or change the security rules to:

    allow read, write;
    

    But I recommend you to use these rules only for testing purposes. Don't keep this rules always like this. Secure your Firebase realtime database, as well as Firebase Storage.

    0 讨论(0)
提交回复
热议问题