# Image broken on iOS using RocketChat livechat api

**URL:** <https://forums.rocket.chat/t/image-broken-on-ios-using-rocketchat-livechat-api/16712>\
**Category:** Development\
**Tags:** android, mobile\
**Created:** [May 3, 2023, 8:58am UTC](https://forums.rocket.chat/t/image-broken-on-ios-using-rocketchat-livechat-api/16712 "2023-05-03T08:58:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lexxxanderr](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@Lexxxanderr](https://forums.rocket.chat/u/Lexxxanderr)\
**Post date:** [May 3, 2023, 8:58am UTC](https://forums.rocket.chat/t/image-broken-on-ios-using-rocketchat-livechat-api/16712/1 "2023-05-03T08:58:43Z")

</div>

I found that the cookies are not saving when the live chat is initialized on the mobile app (Android and iOS). This issue causes the image to be broken and the download feature to not work, most likely on iOS. When uploading the image, it successfully uploaded the file, but on iOS, it showed a broken image, while on Rocket Chat, the image is not broken.

On the portal, the cookies are set when the Rocket Chat live chat is initialized.

**On Mobile app (iOS)**

 ![MicrosoftTeams-image (65)](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/9/9f52b796d237ab5fcd533953305de96fdafa03bd.jpeg)

> After uploading the file on the mobile the image is broken

**Developer Inspect for iOS**

 ![Screenshot 2023-05-03 at 4.46.18 PM](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/3/39cd89e3ac260cb1ddb1c2afffe7bb612e82cb56.png)

> After uploading the file this is the response from rocketchat to mobile app.

 ![Screenshot 2023-05-03 at 4.45.41 PM](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/7/7c8aff00cff389889df7bcc708297658a2446af1.png)

> When the rocketchat livechat is initialized to the mobile app.

 ![Screenshot 2023-05-03 at 4.45.33 PM](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/1/11c0864433ed2d81187c06bb052bcfd58462ce0d.png)

> On the rocketchat ommichannel the image is not broken.

Versions of the tools and application used rocketchat.  
mobile app - ionic 5  
Rocketchat -  
 ![Screenshot 2023-05-03 at 4.57.18 PM](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/b/b885086f2bee2ceb016cedb4bca66a09b42c6392.png)  
iOS version - 16.4  
Android Version - 13

---

<div class="post-metadata">

**Author:** ![Lexxxanderr](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@Lexxxanderr](https://forums.rocket.chat/u/Lexxxanderr)\
**Post date:** [May 17, 2023, 2:39am UTC](https://forums.rocket.chat/t/image-broken-on-ios-using-rocketchat-livechat-api/16712/2 "2023-05-17T02:39:19Z")

</div>

Anyone who knows the issue let me know if you have a workaround solution.

---

<div class="post-metadata">

**Author:** ![Flyingduck01](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@Flyingduck01](https://forums.rocket.chat/u/Flyingduck01)\
**Post date:** [August 8, 2024, 3:50am UTC](https://forums.rocket.chat/t/image-broken-on-ios-using-rocketchat-livechat-api/16712/3 "2024-08-08T03:50:16Z")

</div>

i’ve got the same problem, this only happens in safari, but everything works fine on PC browser and Android devices.

I spent a lot of time to figure this out.  
Try send a pdf in a live chat and tap to see if you could preview in a new tab or download this pdf , if not , the assets url is protected only for users who logged in.  
just go workspace - setting - file upload, turn off the option:  
Protect Uploaded Files  
Only authenticated users will have access
