Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Android cache manifest problem

Avatar

Level 2

Hello there,

I create an application with HTML5 using cache manifest file. All files was cached fine (good), but, I can't know when the cache is finally done because your status stay the same (zero) and the event doesn't fire. The same problem happen with DPS, and there's discussion with no solution to it (even now, the currently adobe content viewer stay with this bug).

Do you know when It'll be to fixed?

An example: https://gist.github.com/felipehaack/c858e416e7187763739d

Thanks so much.

1 Accepted Solution

Avatar

Correct answer by
Employee

To close the loop on this, the change to enable this API on Android in DPS 2015 is done and will be available in the release that goes out roughly four weeks from now.

Neil

View solution in original post

6 Replies

Avatar

Employee

Hi,

We don't currently support window.applicationcache on Android. I'll mention it to the team and see if it's something we can address in a future release.

Neil

Avatar

Employee

One additional question: can you share a .article file with me that you've written that uses the applicationcache APIs? Put the .article file on CC, DropBox, or similar, and then send me a private message with a link to it. Thanks!

Neil

Avatar

Level 2

Thanks for you replay.

About it, I faced the same problem with an android application and I enable it using the follow code:

WebSettings settings = webView.getSettings();


settings.setDatabaseEnabled(true);

settings.setDomStorageEnabled(true);

settings.setAppCachePath("/data/data/"+ webView.getContext().getPackageName() +"/cache"); //your application path /cache folder

settings.setAppCacheEnabled(true);

I hope it help you guys.

Avatar

Level 2

Of course, I'll send to you as soon as possible. Thanks so much.

Avatar

Employee

We already have database and DOM storage enabled, looks like we’re just missing the app cache stuff. If you send me a .article file that’ll help. Thanks!

Neil

Avatar

Correct answer by
Employee

To close the loop on this, the change to enable this API on Android in DPS 2015 is done and will be available in the release that goes out roughly four weeks from now.

Neil