Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Unity 5 API Authentication

Discussion in 'iOS and tvOS' started by blueteak, Mar 3, 2015.

  1. blueteak

    blueteak

    Joined:
    Feb 19, 2013
    Posts:
    122
    Updated to unity 5 release today after using the beta nuilds, but a critical issue still exists.

    Using web APIs that require authentication (Parse, Google APIs, etc) don't function correctly in unity with the standard WWW functions.

    The error returned (for Debug.Log(www.error);) is:
    The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    (Already submitted bug report within Unity Beta RC 3)

    This functionality is critical to two of my in progress applications, so if anyone knows a workaround I would love to hear about it.

    Edit: The culprit is SSL, not authentication. Using http:// works fine, https:// gives the error

    - Blueteak
     
    Last edited: Mar 3, 2015
  2. vrm2p

    vrm2p

    Joined:
    Jul 23, 2014
    Posts:
    17
    /push

    WWW and SSL don't work at all in u5

    happens to me as well
     
    lingokids and MrEsquire like this.
  3. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    428
    Hello, this is a known bug. A fix is in the works.
     
    AdamAtShernet and lingokids like this.
  4. Psy_Duck

    Psy_Duck

    Joined:
    Jun 12, 2013
    Posts:
    9
    Thanks for the info and keep up the good work! @povilas any chance of getting an estimate for that fix?
     
    lingokids likes this.
  5. IsaacMonkimun

    IsaacMonkimun

    Joined:
    Mar 10, 2015
    Posts:
    1
    Hi there we have the same issue here, please try to fix this asap or give a release date for that fix since it's a critical bug / issue!

    Thanks in advanced!
     
    lingokids likes this.
  6. blueteak

    blueteak

    Joined:
    Feb 19, 2013
    Posts:
    122
    Thanks for the response! Hope it comes soon :D
     
    lingokids likes this.
  7. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    926
    Bump!
     
    lingokids likes this.
  8. aparraga

    aparraga

    Joined:
    Aug 13, 2014
    Posts:
    20
    Could you please unity guys give us at least an ETA for the patch? it's so critical for all of us to have it working asap.
    This is the risk of to be an early adopter, buff
     
    Last edited: Mar 13, 2015
    lingokids likes this.
  9. lingokids

    lingokids

    Joined:
    Dec 4, 2014
    Posts:
    3
    Hi there, any updates on this? It's been 10 days since the bug was reported and we know *nothing* about the status. What's the ETA for fixing this?

    I understand when you use a beta version things are broken, but we're using the stable version of Unity 5. 10 days without a fix seems like a lot of time for a premium service (we're paying several pro licenses) like yours.

    Please advise.

    Cristobal Viedma
    Monkimun CEO
     
  10. lingokids

    lingokids

    Joined:
    Dec 4, 2014
    Posts:
    3
    Any estimate on when will this be fixed?
     
  11. foobar

    foobar

    Joined:
    Jan 28, 2010
    Posts:
    89
    Any word on this. We're unable to make any progress in our development until this issue is resolved.
     
    masterial, lingokids and Kirbyrawr like this.
  12. psyydack

    psyydack

    Joined:
    Aug 30, 2013
    Posts:
    92
    Some news about this issue??
     
    lingokids likes this.
  13. masterial

    masterial

    Joined:
    Jan 21, 2015
    Posts:
    40
    Please fix this.
     
    lingokids likes this.
  14. alphaappers

    alphaappers

    Joined:
    Jan 20, 2015
    Posts:
    1
    Has anybody wrote a bug report to Unity?
     
    lingokids likes this.
  15. peroon

    peroon

    Joined:
    Nov 18, 2012
    Posts:
    7
    It's fixed at 5.0.0.p1? The bug still seems exist.

    (I send bug report to unity)
     
    Last edited: Mar 17, 2015
    lingokids likes this.
  16. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    428
    Hi,
    The bug has been fixed and the fix will likely to be released in 5.0.0p3 and 4.6.3p4.
     
    AdamAtShernet and Kirbyrawr like this.
  17. aparraga

    aparraga

    Joined:
    Aug 13, 2014
    Posts:
    20
    Regarding the 5.0.0p3, just to know, are we talking about days or weeks?
    Thank you
     
    lingokids likes this.
  18. Psy_Duck

    Psy_Duck

    Joined:
    Jun 12, 2013
    Posts:
    9
    What I have gathered is that the 5.0.0p3 patch is due next week (if p2 is released this week).
     
    lingokids likes this.
  19. lingokids

    lingokids

    Joined:
    Dec 4, 2014
    Posts:
    3
    when is 5.0.0p3 going to be released?
     
  20. alguemlegal

    alguemlegal

    Joined:
    Dec 18, 2013
    Posts:
    3
    We are facing the same issue and we are unable to deploy our project due to this bug.
    We have 3 PRO licences and we are still waiting for a fix.
     
  21. psyydack

    psyydack

    Joined:
    Aug 30, 2013
    Posts:
    92
    I installing last patch to see if now it's working, at least Parse.
    unity3d.com/pt/unity/qa/patch-releases

    • (669983) - iOS/IL2CPP: Now allow the LogInAsync method in the ParseSDK to work correctly.
     
  22. Brock-Bondo

    Brock-Bondo

    Joined:
    Sep 21, 2013
    Posts:
    18
    This specific patch fix below isn't for WWW on iOS so I'm waiting on patch 3 to see something. Just upgraded to 5.0.0p2 yesterday to test and realized webrequest isn't WWW. Looking forward to patch 3!!!!!!!

    Patch 5.0.0p2
    • (674783), (674629), (677286) - iOS/IL2CPP: Added support for WebRequest to HTTPS addresses when using the Api Compatibility Level setting of .NET 2.0 Subset.
     
  23. psyydack

    psyydack

    Joined:
    Aug 30, 2013
    Posts:
    92
    Installing P3.
    • (647126) - WWW: Fixed incorrect HTTP status 100 when POST data was relatively large.
     
  24. AdamAtShernet

    AdamAtShernet

    Joined:
    Nov 13, 2014
    Posts:
    2
    Didn't see:
    (660734) - iOS: Fixed https failures in some cases
    In 5.0.0p3, and still unable to pull data via HTTPS on iOS.
    Anyone else still having this problem?
     
  25. jamesar

    jamesar

    Joined:
    May 21, 2013
    Posts:
    9
    I'm still getting the error after the patch today.
     
  26. alguemlegal

    alguemlegal

    Joined:
    Dec 18, 2013
    Posts:
    3
    Me too.
    I installed the patch and I still get the error.
    Unable to deploy my app to my customers because of this!!!
     
  27. georgepiva

    georgepiva

    Joined:
    Dec 16, 2013
    Posts:
    13
    I am thinking about manually backporting my projects to the Unity 4 which is an error prone task. When this issue will be fixed? Any real ETA? I really need to release another version of my apps.
     
    Last edited: Mar 27, 2015
    Gregory Strubi likes this.
  28. blueteak

    blueteak

    Joined:
    Feb 19, 2013
    Posts:
    122
    Problem persists (parse giving NSURL Error -1012), quite frustrated the fix didn't make the cut this patch after official word that it would.
     
    Gregory Strubi and georgepiva like this.
  29. Brock-Bondo

    Brock-Bondo

    Joined:
    Sep 21, 2013
    Posts:
    18
    What the hell? HTTPS WWW calls do not work still in Patch 3. How hard can it be to support what was previously working? I can't release my app right now. All our calls to pull external files use Amazon EC2 or Dropbox which have https urls. You probably have at least 50% of your customers needing this functionality for basic web service calls over https!!!!!


    dl error = The operation couldn’t be completed. (NSURLErrorDomain error -1012.)

    This is an issue with simple code of line 1 when the url is something like https://www.dropbox.com/s/3ggvc7q4rqobekx/bee-gees_stayingalive.mp3

    Code (CSharp):
    1. using(WWW download = new WWW(url)){
    2. while(!download.isDone) {
    3. if (showLoadingProgress != null) {
    4. showLoadingProgress.setLoadingPercent(download.progress * 100f);
    5.  
    6. if (download.progress >= 0.99f)
    7. showLoadingProgress.setUpdateUserLabelText("Download complete. Accessing song now.");
    8. }
    9. yield return 0;
    10. }
     
    Last edited: Mar 27, 2015
    georgepiva and Gregory Strubi like this.
  30. Gregory Strubi

    Gregory Strubi

    Joined:
    Feb 9, 2015
    Posts:
    1
    Hey guys. We also still have the same issue here with the new patch. This is a shame because it discredits the whole engine. I don't want to work with the fear that each time I update Unity random things might stop working.

    Now, we really need a more definitive statement from you. We simply can't afford waiting an indefinite amount of time before releasing our games! So:

    Will this be fixed in the next patch or not?
     
    alguemlegal and georgepiva like this.
  31. aparraga

    aparraga

    Joined:
    Aug 13, 2014
    Posts:
    20
    Same here with the Parse API, that connects via HTTPS with the Parse backend. P3 still failing :(
     
  32. psyydack

    psyydack

    Joined:
    Aug 30, 2013
    Posts:
    92
  33. blueteak

    blueteak

    Joined:
    Feb 19, 2013
    Posts:
    122
    Thanks psyydack! A shame that it didn't make it to this patch...
     
  34. ttmayrin

    ttmayrin

    Joined:
    Dec 22, 2014
    Posts:
    1
    download Patch 5.0.1p1
    • (660734) - iOS: Fix HTTPs problem.
     
  35. timsk

    timsk

    Joined:
    May 27, 2011
    Posts:
    177
  36. Vizionz

    Vizionz

    Joined:
    Feb 28, 2013
    Posts:
    2
  37. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,850
  38. timsk

    timsk

    Joined:
    May 27, 2011
    Posts:
    177
    Ah, I'm using the latest release release (5.0.1f1). I'll try 5.0.1p1 and report.
     
  39. timsk

    timsk

    Joined:
    May 27, 2011
    Posts:
    177