<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic App Cache  in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025972#M40134</link>
    <description>&lt;P&gt;Hi good pple,&lt;/P&gt;

&lt;P&gt;This is what I have done to cache my app, but it's not working:&lt;/P&gt;

&lt;P&gt;-Edit the &amp;lt;html&amp;gt; tag on the index.html file to point to the manifest file &amp;lt;html manifest="http://localhost/template-login-view-master/www/php/cache.manifest"&amp;gt;&lt;/P&gt;

&lt;P&gt;-Create a file named&amp;nbsp;cache.manifest inside the php folder. Add in that file these lines:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CACHE MANIFEST&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; # rev 42&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; CACHE:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; clickSlider.png&lt;/P&gt;

&lt;P&gt;clickSlider.png is a file the app uses somewhere. It's located in the php folder.&lt;/P&gt;

&lt;P&gt;-Create a file named .htaccess inside the php folder with this line :&lt;/P&gt;

&lt;P&gt;AddType text/cache-manifest .manifest .&lt;/P&gt;

&lt;P&gt;When I stop the server&amp;nbsp; and refresh the app, it doesn't show anything. Please help.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Feb 2015 09:06:14 GMT</pubDate>
    <dc:creator>John_N_1</dc:creator>
    <dc:date>2015-02-27T09:06:14Z</dc:date>
    <item>
      <title>App Cache</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025972#M40134</link>
      <description>&lt;P&gt;Hi good pple,&lt;/P&gt;

&lt;P&gt;This is what I have done to cache my app, but it's not working:&lt;/P&gt;

&lt;P&gt;-Edit the &amp;lt;html&amp;gt; tag on the index.html file to point to the manifest file &amp;lt;html manifest="http://localhost/template-login-view-master/www/php/cache.manifest"&amp;gt;&lt;/P&gt;

&lt;P&gt;-Create a file named&amp;nbsp;cache.manifest inside the php folder. Add in that file these lines:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CACHE MANIFEST&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; # rev 42&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; CACHE:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; clickSlider.png&lt;/P&gt;

&lt;P&gt;clickSlider.png is a file the app uses somewhere. It's located in the php folder.&lt;/P&gt;

&lt;P&gt;-Create a file named .htaccess inside the php folder with this line :&lt;/P&gt;

&lt;P&gt;AddType text/cache-manifest .manifest .&lt;/P&gt;

&lt;P&gt;When I stop the server&amp;nbsp; and refresh the app, it doesn't show anything. Please help.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2015 09:06:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025972#M40134</guid>
      <dc:creator>John_N_1</dc:creator>
      <dc:date>2015-02-27T09:06:14Z</dc:date>
    </item>
    <item>
      <title>I believe you need to include</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025973#M40135</link>
      <description>&lt;P&gt;I believe you need to include index.html also in the cache manifest file. Please follow this article for app cache manifest file.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.html5rocks.com/en/tutorials/appcache/beginner/#toc-manifest-file-creating" target="_blank"&gt;http://www.html5rocks.com/en/tutorials/appcache/beginner/#toc-manifest-file-creating&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Swati&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 06:21:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025973#M40135</guid>
      <dc:creator>Swati_S_Intel1</dc:creator>
      <dc:date>2015-03-02T06:21:03Z</dc:date>
    </item>
    <item>
      <title>Hi Swati, caching</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025974#M40136</link>
      <description>&lt;P&gt;Hi Swati, caching&lt;/P&gt;

&lt;P&gt;I have edited the manifest file and added index.html. Still it's not caching. To help view what's going on , I added these lines on the index.html file :&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.ui.launch(); // This line helps you (Swati) see where I have added these lines of code&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!window.applicationCache) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('appcache failed');}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; var appCache = window.applicationCache;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; switch (appCache.status) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case appCache.UNCACHED: // UNCACHED == 0&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('UNCACHED');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case appCache.IDLE: // IDLE == 1&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('IDLE');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case appCache.CHECKING: // CHECKING == 2&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('CHECKING');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case appCache.DOWNLOADING: // DOWNLOADING == 3&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('DOWNLOADING');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case appCache.UPDATEREADY:&amp;nbsp; // UPDATEREADY == 4&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('UPDATEREADY');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case appCache.OBSOLETE: // OBSOLETE == 5&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('OBSOLETE');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('UKNOWN CACHE STATUS');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; };&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; console.log(window.applicationCache.status);&lt;/P&gt;

&lt;P&gt;On the console log, I see Uncached. Please help me Swati, as I cannot figure out another option to caching. This feature is very crucial to the app dev process. Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 07:08:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025974#M40136</guid>
      <dc:creator>John_N_1</dc:creator>
      <dc:date>2015-03-02T07:08:07Z</dc:date>
    </item>
    <item>
      <title>The tutorial you are pointing</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025975#M40137</link>
      <description>&lt;P&gt;The tutorial you are pointing to, and others I have looked at, refer to&amp;nbsp; web apps and websites where the app files -HTML, JS, CSS are located in a web server, so the browser actually will download these files and save them locally. But hybrid apps are different; these files are located in the app the user downloads and not on the server.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 07:21:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025975#M40137</guid>
      <dc:creator>John_N_1</dc:creator>
      <dc:date>2015-03-02T07:21:52Z</dc:date>
    </item>
    <item>
      <title>That's correct. The hybrid</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025976#M40138</link>
      <description>&lt;P&gt;That's correct. The hybrid apps are downloaded and reside on the device. It is only in the case of webapps/websites that you need to cache the app/data. For hybrid apps, if you are trying to get data, &amp;nbsp;typically the data is fetched via ajax call to the server and if you want you can use local storage to save the data for later use.&lt;/P&gt;

&lt;P&gt;Swati&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 07:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025976#M40138</guid>
      <dc:creator>Swati_S_Intel1</dc:creator>
      <dc:date>2015-03-02T07:29:00Z</dc:date>
    </item>
    <item>
      <title>Do you want save little data</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025977#M40139</link>
      <description>&lt;P&gt;Do you want save little data as cookies?&lt;/P&gt;

&lt;P&gt;I am using this (to get):&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;function funRecuperaOpcoes() {
  try {
        if(typeof(window.localStorage) != 'undefined') {
            if (window.localStorage.getItem(2)) {
                wNomeUsuario = window.localStorage.getItem(2);
                $.query('#camNomeUsuario').val(wNomeUsuario);
            }
            if (window.localStorage.getItem(3) == "s") {
                $.query('#detalhesUploadDownload').attr('Checked','Checked');
            } else {
                $.query('#detalhesUploadDownload').prop('checked', false);
            }             
        } else {
            alert('window.localStorage, not defined');
            }
    }
    catch(err){
        alert('store_local,error,' + err);
    }
    } &lt;/PRE&gt;

&lt;P&gt;and to save:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;function funGravaNomeUsuario() {
    wNomeUsuario = $.query('#camNomeUsuario').val();
    try {
        if(typeof(window.localStorage) != 'undefined') {
            window.localStorage.setItem(2, wNomeUsuario);
            }
        else
            {
            alert('window.localStorage, not defined');
            }
    }
    catch(err){
        alert('store_local,error,' + err);
    }
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 09:40:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025977#M40139</guid>
      <dc:creator>Hamilton_Tenório_da_</dc:creator>
      <dc:date>2015-03-02T09:40:50Z</dc:date>
    </item>
    <item>
      <title>Thanks Swati &amp; Hamilton for</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025978#M40140</link>
      <description>&lt;P&gt;Thanks Swati &amp;amp; Hamilton for your replies. From the comments above, I can conclude that caching hybrid apps is not possible. Local storage is not sufficient for this purpose, either. Sadly am beginning to realize the difference between native &amp;amp; web apps when am almost getting ready to release my first ever app. This is the only thing that is not working in the entire project. How sad for me...&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 18:55:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025978#M40140</guid>
      <dc:creator>John_N_1</dc:creator>
      <dc:date>2015-03-02T18:55:54Z</dc:date>
    </item>
    <item>
      <title>Web SQL is not enough for you</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025979#M40141</link>
      <description>&lt;P&gt;Web SQL is not enough for you? I use it with good results.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 19:26:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025979#M40141</guid>
      <dc:creator>Hamilton_Tenório_da_</dc:creator>
      <dc:date>2015-03-02T19:26:55Z</dc:date>
    </item>
    <item>
      <title>Mr Hamilton,</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025980#M40142</link>
      <description>&lt;P&gt;Mr Hamilton,&lt;/P&gt;

&lt;P&gt;Am developing an app similar to the facebook app. How do I use Web SQL to save several posts comprising of images, may be videos and text the user has viewed ? Is it really practical ?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2015 07:59:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025980#M40142</guid>
      <dc:creator>John_N_1</dc:creator>
      <dc:date>2015-03-03T07:59:53Z</dc:date>
    </item>
    <item>
      <title>I´m not sure. You maybe need</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025981#M40143</link>
      <description>&lt;P&gt;I´m not sure. You maybe need to use this database only for temporary store. When connected, the program transfer the content to server.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2015 09:20:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025981#M40143</guid>
      <dc:creator>Hamilton_Tenório_da_</dc:creator>
      <dc:date>2015-03-03T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Try using this plugin for</title>
      <link>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025982#M40144</link>
      <description>&lt;P&gt;Try using this plugin for your local database storage: &lt;A href="https://github.com/brodysoft/Cordova-SQLitePlugin" target="_blank"&gt;https://github.com/brodysoft/Cordova-SQLitePlugin&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 23:57:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/App-Cache/m-p/1025982#M40144</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2015-03-09T23:57:44Z</dc:date>
    </item>
  </channel>
</rss>

