← Back to team overview

ubuntu-phone team mailing list archive

Re: online offline app

 

Diogo,

Maybe you can cache the last content yourself when the application finishes (or whenever you want). Then when the application starts and you cannot connect to the internet you show the last cached content.

I think that Qt Network module provides that facility, see QNetworkRequest and QNetworkReply classes.

Best Regards,
Carlos

On 06-07-2015 12:50, Diogo Figueira wrote:
Hi all

i just wanted to know how i can do this.

Example, i have an app thats linked to a wordpress site and when i'm connected to the internet, i see everything normaly, but when i'm not connected to the web i see the last things there where on the site (cache) and when i'm online again it will update automaticly the cache, does some one how to do this??




References