• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by pontori · Nov 05, 2013 at 02:26 PM · wwwwindowsstore

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?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ejlersen · Nov 05, 2013 at 05:15 PM 0
Share

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.

avatar image loki70x7 · Jan 26, 2014 at 02:13 AM 0
Share

Did anyone get a solution for this? I think I'm having a similar issue.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Integrating Watson Speech-to-Text with Unity 1 Answer

How to Read Data from a Bluetooth Device with a Windows Store App 3 Answers

WWW Windows Phone 8 / Windows RT 8.1 missing first line http status header 0 Answers

submitting to windows app store 1 Answer

compile error. does not denote a valid type. 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges