Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
1
Question by rrrrhoi · Mar 04, 2015 at 01:51 PM · ioswwwnot found

www 404 error only on iOS

Hi

I have a problem with WWW, only on iOS device. trying to download a simple plain text-file from web server.

The URL looks like this.. http://a.b.c/d_e/0.1.2/target.txt
It has alphabetic characters and some special characters only ( : / . _ ).
Has no blank space, etc. and hard-coded.

And my script(pseudo code) is..

     IEnumlator Start()
     {
        Debug.Log( url );
        using( WWW www = new WWW(url) )
        {
           if ( false == www.isDone )
           {
              Debug.Log( "yield.." );
              yield return null;
           }
 
           if ( null != www.error )
           {
              Debug.Log( www.error );
           }
           else
           {
              Debug.Log( "SUCCEED!" );
           }
       }
    }

Have tested..

  1. Windows7 + unity editor 4.6.1p5

  2. OSX Mavericks + unity editor 4.6.2

  3. OSX Yosemite + unity editor 4.6.3

  4. Safari, Chrome, IE...

  5. Android device (4.3)

  6. iOS device (7.x)

case 1,2,3,4,5 they all show me the "SUCCEED!" on log. ( Web browser display the contents of target file. )
but, "404 Not Found" only on ios ...

All log looks like below on ios


http://a.b.c/d_e/0.1.2/target.txt
yield.. <-- just one time.
404 Not Found


...

What i have missed?

Thanks.

Comment
Add comment · Show 1
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 Playmac · Dec 15, 2015 at 02:37 PM 0
Share

It seems that you can not have the . (dots) in the file name!!!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by phil_me_up · Dec 15, 2015 at 11:05 PM

I know that you said you're using iOS7, but something to keep in mind is ATS for iOS9 which you will need to setup within the XCode plist to make these kind of calls. https://forums.developer.apple.com/thread/3544

As for your immediate problem, there is the obvious issues such as making sure your device can actually connect to any web service. Assuming that's ok, it might be worth modifying the url (e.g. append '?randomNumber' to the end of the url) or as a temporary test placing a second file on the server and try to read that in order to avoid caching.

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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

WWW.h crash in store build 5 Answers

Assetbundle memory leaks 0 Answers

OutOfMemoryException when downloading files via the www class (iOS and Android) 1 Answer

Unity 5.6.1f1 build export on IOS throws errors 0 Answers

Memory leak with WWW on iOS 1 Answer


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