7

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.

Alexey Zakharov
  • 24,694
  • 42
  • 126
  • 197

2 Answers2

1

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

Shazron
  • 2,446
  • 1
  • 18
  • 30
  • 1
    Hmm. That is really bad news. Cache manifest is the only thing that will allow to cache google api and map tiles =\ Using cache manifest was also recomended by Google team in their blog for mobile devises. – Alexey Zakharov Aug 25 '11 at 16:29
  • 1
    Did you see this post: http://stackoverflow.com/questions/1540240/html5-cache-manifest-in-a-uiwebview It appears possible on iOS 4+, provided you do the manifest properly. – Crashalot Oct 19 '11 at 02:48
  • looks like the apple employee dev got it wrong. adding headers for manifest file worked on iOS 4.3 http://stackoverflow.com/a/3586498/522050 – pahan Jun 20 '12 at 12:29
0

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)?

Community
  • 1
  • 1
Devgeeks
  • 5,659
  • 4
  • 28
  • 35