Search Unity

Would SSL https connections be possible via a plugin?

Discussion in 'iOS and tvOS' started by GamingHorror, Nov 15, 2009.

  1. GamingHorror

    GamingHorror

    Joined:
    Sep 4, 2009
    Posts:
    9
    I know Unity iPhone doesn't support https/SSL out of the box (respectively through the WWW class). However, i was thinking that you could to set up a secure connection by writing a plugin that uses the iPhone SDK's functionality for https/SSL.

    I would like to know if this is indeed possible, and if not why wouldn't it?

    Thanks in advance for any input on this.
     
  2. jtbentley

    jtbentley

    Joined:
    Jun 30, 2009
    Posts:
    1,397
    Unity Advanced allows you take make calls to native Obj-C code, so I don't see any reason why it wouldn't be possible.

    However, I've not actually done it myself :)
     
  3. GamingHorror

    GamingHorror

    Joined:
    Sep 4, 2009
    Posts:
    9
    I was thinking the same thing. Why wouldn't it be possible? Of course, only if you're using Pro.

    If anyone who has written plugins for Unity could give me another "i think it should work" comment that would be great. ;)
     
  4. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    Unity Pro will not have any impact (nor do Unity Pro plugins as you can't use them)
    You need Unity iPhone Advanced and with that its possible yes.
    You can call any Obj C / C function you want.

    I would just recommend to have the whole calling part on the obj c / c end and expose a function that just takes an url and returns the corresponding string to unity.

    also don't forget that you must free data you are returning yourself within unity (the example project gives you some idea / info on that)
     
  5. GamingHorror

    GamingHorror

    Joined:
    Sep 4, 2009
    Posts:
    9
    Thanks, and yes i'm simply confusing that there's Unity Pro but the commercial version for iPhone is called Unity iPhone Advanced, not Pro.
     
  6. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864