- Home /
Windows store app - WWW doesn't seem to be working
The docs say that WWW is supported on W8 Store apps: "Things that are not yet supported: Network classes, WWW is supported though"
However, i cant get it to work. It works fine in the editor game mode, but on a Windows Store build its not working. For example this code here:
// Post the URL to the site and create a download object to get the result.
hs_post = WWW(highscore_url);
yield hs_post; // Wait until the download is done
if(hs_post.error) {
print("There was an error posting the high score: " + hs_post.error);
}
Is there something i can do?
Yes, WWW works fine in W8 Store apps. However sites are cached, so if you hope to get new info from the same url, then thats not going to happen, unless local cache is cleared.
You can avoid the caching by having a running number on your url, e.g.: www.myexample.com/?site=hiscore&id=1. Then next time your call should be: www.myexample.com/?site=hiscore&id=2.
Did anyone get a solution for this? I think I'm having a similar issue.
Answer by pontori · Nov 05, 2013 at 07:09 PM
But I'm not getting any info from the sites, not even old info. I tried with the running number but still no luck, it seems im getting an error: The system cannot locate the resource specified. This only happens on the store build, works fine in the editor and on windows phone.