I am working on a chat app that is using Firebase realtime database and storage.
Currently I work with this approach to send and receive images:
- On Send Button Click: Intent for the gallery >> uploading the image to Firebase storage >> storing the image URL in the messages child in Firebase Database.
- In the adapter when the type is set to "image"in a child in messages, I retrieve the image to an ImageView with Picasso and its offline capabilities.
The problem is that high quality images are more than 1 MB. Once they are sent the app get very slow when scrolling the chat then some images disappears from the ImageView.
Is there anyway to make the image retrieving more smoothly and faster?