Retrieving and storing data using firebase and sqlite for online or offline use


#1

is it possible that after retrieving data from firebase I can store in sqlite database?

an example is whenever the user is online the app retrieves data and stores it on sqlite before displaying it as a listview. and when the user is offline it still displays the existing data from the sqlite database.

is there any existing code that I can reference for this?

update: does this line of code work for offline use?

firebase.init({
    persist: true
  });

Thanks!