iOS Development

android – PWA. Offline saving and retrieving pictures in and from consumer’s telephone native system?

I am at the moment creating a PWA wich would want to retailer pictures taken from the consumer’s telephone digital camera in a persistent means, after which name to those self same pictures for populating a web page (in the identical means a standard web site would do speaking with the server) however with out leaving consumer’s telephone context.
Saving the photographs within the server shouldn’t be contemplated, as the quantity of pictures and customers would do it very storage consuming.
I have been learning using File System API, as any regular internet may do it, however having to ask for permission always make it extraordinarily uncomfortable.
I used to be anticipating that within the improvement of a PWA working on native gadget can be a strategy to bypass a number of the restrictions that speaking with the server’web page by way of a browser have.

I have been making an attempt to avoid wasting pictures as blobs in a .txt for later use with no success. Ultimately that is probably not the workaround I wish to use, due to the necessity for asking permission everytime I wish to save the .txt, the impossibility of updating the identical .txt as an alternative of saving totally different variations, the dearth of management about the place to storage this .txt and at last, the necessity of asking for permission to learn this .txt when opening the web page.

Saving the blobs image info in native db as indexedDB can be a chance, however I might attempt to not doing it this manner, due to the necessity of utilizing the storage capability of indexedDB for saving different assets. As well as, the actual fact of how simple is to unintentionally clear wanted PWA’s information from indexedDB merely clearing cache makes me really feel actually uncomfortable and dependant of a relentless backup system.

Can anybody inform me an offline means of storaging photos and retrieving them from telephone consumer’s native system (android, IOS and extra)? A variety of thanks to your time.


Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button