cboard icon indicating copy to clipboard operation
cboard copied to clipboard

Some users on Android APP are not storing images in base64 when are offline

Open tomivm opened this issue 6 months ago • 2 comments

In some cases, users from Android APP are not storing images in base64 when are offline is strange because if it is a logged user it should create a base64 if we see this lines lines

The image are stored under `file:///storage/emulated/0/Android/data/com.unicef.cboard/files/

tomivm avatar Jun 19 '25 10:06 tomivm

I was able to reproduce the bug:

Device: Samsung A7 tab OS: Android

Steps: 1 - Delete de APP cache 2 - Modify existing board adding a Tile or Folder within an uploaded image from the device 3 - Login in a new Account (without communicator and boards) 4 - Check that the modifications of the board from the step 2 are persisted 5 - Do a modification in the board, that will create the API communicator and the API board 5 - Check that the stored image haver the file:/// url

This need to be fixed in the sync improvements that we are gonna do

RodriSanchez1 avatar Jun 20 '25 15:06 RodriSanchez1

The Line that cause this for unlogged users is: https://github.com/magush27/cboard/blob/4e6a88ac8e82ab78d90a46b11f4d30101d86fa1a/src/components/Board/TileEditor/TileEditor.component.js#L245

tomivm avatar Aug 21 '25 17:08 tomivm