# Failed media message is getting lost once the user navigates from the page

**URL:** <https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592>\
**Category:** Android\
**Created:** [July 7, 2021, 6:45am UTC](https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592 "2021-07-07T06:45:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tej](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@Tej](https://community.sendbird.com/u/Tej)\
**Post date:** [July 7, 2021, 6:45am UTC](https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592/1 "2021-07-07T06:45:13Z")

</div>

I am using Android SendBird Chat SDK version **3.0.167** and SyncManager version **1.1.30**. So when the user has some failed media message and the user navigates or closes the app and comes back then the failed message is lost. So the user cannot to the retry.

---

<div class="post-metadata">

**Author:** ![Tej](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@Tej](https://community.sendbird.com/u/Tej)\
**Post date:** [July 7, 2021, 12:42pm UTC](https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592/2 "2021-07-07T12:42:15Z")

</div>

@Tyler any help here 👆

---

<div class="post-metadata">

**Author:** ![LeoShin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/leoshin/32/397_2.png) [@LeoShin](https://community.sendbird.com/u/LeoShin)\
**Post date:** [July 8, 2021, 4:44am UTC](https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592/3 "2021-07-08T04:44:18Z")

</div>

@Tej Hi. ~~It is helpful for us if you give us more information or reproduce steps. How can we reproduce it?~~

---

<div class="post-metadata">

**Author:** ![Tej](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@Tej](https://community.sendbird.com/u/Tej)\
**Post date:** [July 8, 2021, 5:01am UTC](https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592/4 "2021-07-08T05:01:38Z")

</div>

@LeoShin , so the steps to reproduce is,  
Go inside any group chat and there upload any media(image/video/file) while it is uploading if internet goes off or for some reason the upload fails then we show the upload failed sign beside the media to indicate to the user that the media was not sent. Now if the user presses back button to exit the chat page then the failed message(media message) is lost once he comes back to the chat page.

But for the failed text messages it is visible to the user to retry.

---

<div class="post-metadata">

**Author:** ![LeoShin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/leoshin/32/397_2.png) [@LeoShin](https://community.sendbird.com/u/LeoShin)\
**Post date:** [July 8, 2021, 5:04am UTC](https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592/5 "2021-07-08T05:04:31Z")

</div>

The SyncManager deletes the failed file message without saving it. It is intended behavior. However, if the message is a text message it will be re-sended.

see this link. [About SyncManager | SyncManager Android SDK | Sendbird Docs](https://sendbird.com/docs/syncmanager/v1/android/getting-started/about-syncmanager#1-about-syncmanager)

---

<div class="post-metadata">

**Author:** ![Tej](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@Tej](https://community.sendbird.com/u/Tej)\
**Post date:** [July 8, 2021, 5:09am UTC](https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592/6 "2021-07-08T05:09:06Z")

</div>

@LeoShin In the docs I see that sync manager support for file messages is coming soon, so do we have any time line for it?

Because this is a serious problem in our use case, our user may have uploaded a video in the poor network area and it may have failed to upload, but when user comes to good network area then he wants to retry it but now the file message is lost.

So do we have any other work around or so for this?

---

<div class="post-metadata">

**Author:** ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)\
**Post date:** [July 13, 2021, 10:57am UTC](https://community.sendbird.com/t/failed-media-message-is-getting-lost-once-the-user-navigates-from-the-page/2592/7 "2021-07-13T10:57:47Z")

</div>

Android provides many ways for storing media files locally. For example here:

> **[How to store data locally in an Android app - Android Authority](https://www.androidauthority.com/how-to-store-data-locally-in-android-app-717190/)**
>
> We dig into the different options available to store data locally on an android device, complete with sample source code.

Before sending a message, you can store media in one of these mediums and check afterwards.
