php - How to make my WebApp available offline? -
if using google calendar, may noticed have "offline" feature. can use google calendar if offline. interested know strategy using enable feature?
i have php/mysql invoicing application, , i want allow users use system if offline, when internet back, data should synced online version.
i don't want install codes in client's pcs, hope if has idea allows me same did in google calendar or other idea may help.
there javascript variable called localstorage. can store there queue of commands executed , can can implement synchronize function, this:
function synchronize(queue) { while (!queue.isempty()) { queue.pop().execute(); } }
you can use else, including offline storage, remember offline storage supported html5, if want support older browsers, need have fallback logic well.
Comments
Post a Comment