Software Archive
Read-only legacy content
17061 讨论

intel.xdk.cache Never Loads

James_H_1
初学者
835 次查看

I am making a chatting program that stores the conversation in the cache object  as well as other data.  Up until the recent Intel XDK update, my code was working fine, but now when I try to run the app in the App Preview on my iPhone, the intel.xdk.cache never loads.  In the emulator, it still works fine though.  I based the start of my code off of whether or not the cache loads and it never runs (I have an alert that it should trigger).

//animate is window.requestAnimationFrame

var intel;//included to make sure test of existence doesn't cause error

function onReady(){/*app starts here, including an alert*/}

function wait(){
    if(!intel || !intel.xdk || !intel.xdk.cache)
        animate(wait);//so that its not running at full speed
    else
        onReady();
}

animate(wait);

I have made sure the plug-in is still selected (it is) and whether this code still works when I remove the last condition (it does).  I even tried reinstalling the App Preview but to no avail.  Am I missing something?  Is there another plugin I need to include or was the cache deprecated?

0 项奖励
5 回复数
Swati_S_Intel1
835 次查看

Can you check in the YourProject.xdk file if under the plugins, for cache plugin, selectedState is "Included". There seems to be a bug, it doesn't seem to save the selected state of the plugin. If it is "Excluded" please change it to "Included" and try to to push your files to the server again.

Swati

0 项奖励
James_H_1
初学者
835 次查看

It worked, but only when I checked and unchecked it in the Intel XDK, not when I altered the file manually.

0 项奖励
Swati_S_Intel1
835 次查看

I've reported this bug. For now please check/uncheck the plugin. The .xdk file gets written when you upload your files under Test tab and under Build tab. So double check in the .xdk file before you test and build.

Sorry about the inconvenience.

Swati

0 项奖励
Alessandro_S_
初学者
835 次查看
this trick only work for android version of app preview. For os version the cache is not loaded even if I check and uncheck cache flag. Should I try unchecking and checking again the os banner above?
0 项奖励
Swati_S_Intel1
835 次查看

Alessandro, I recommend that you start a fresh project and then check/uncheck the appropriate plugin and then go to Test tab directly (do not touch the emulate tab) then your plugins should work with App Preview. A fix for this plugin issue is on it's way. We will update you soon.

Swati

0 项奖励
回复