Alexey Zakharov
Alexey Zakharov

Reputation: 25102

Does phonegap support offline storage cache manifest?

Does phonegap supports offline storage cache manifest mentioned in this article http://blogs.missouristate.edu/web/2010/05/12/google-maps-api-v3-developing-for-mobile-devices/?

I want to use cache manifest to cache google maps scripts and tiles to boost performance of my application.

Upvotes: 7

Views: 5212

Answers (2)

Shazron
Shazron

Reputation: 2478

Not possible. I got this is straight from an Apple employee dev (at WWDC) from a Safari session (UIWebView no, Mobile Safari yes)

Upvotes: 1

Devgeeks
Devgeeks

Reputation: 5647

Apparently there are some problems with UIWebView's and cache manifest files.

Html5 cache manifest in a UIWebView?

There are answers to similar questions on the PhoneGap google groups mailing list however that suggest it cannot be done in PhoneGap at all.

Note: I also saw someone answer your question on the google groups mailing list, simply suggesting that in the example you gave they were caching files that you could just include in your PhoneGap application. While this would work if the files were once off, if they ever needed updating this would be no good, not so much "cached" as "static".

Perhaps if this was the case you could use the PhoneGap File api to get updated versions of the files and store them locally (overwriting the old)?

Upvotes: 0

Related Questions