Save or Persist an image in the Mobile App

We are making a mobile app for our technicians to use to take pictures in the field, and are trying to solve for the following scenario:
If there is no cell service or Wifi connection available, we need a way for the images captured with the mobile app to be saved and persisted in the app, to be uploaded (manually) once data connectivity is restored.
Is this possible? In our testing so far, image files do not survive a restart of the app allowing them to be uploaded later. Even if saved to localstorage, that appears to be reset as well.

Is there a way to implement this functionality?

1 Like

localStorage should work, but you will need to convert the image data to base64 using the getDataByObjectURL API. Can you share how you're saving images to localStorage?

2 Likes