Is anybody work with offline app later sync with backend mysql

Title^^^
some of saying store api call in localstorage. since we all know localstorage is not safe to store data.
how can i achieve with sqlite and later sync my data to backend laravel api + mysql

Thank you