Enabling WiFi or 3G

Discussion in 'iOS Programming' started by Becha, Aug 20, 2008.

  1. Becha macrumors newbie

    Joined:
    Aug 20, 2008
    Location:
    Sweden
    #1
    Hello,
    I am fairly new to making apps to the iPhone and has run in to some problems.

    The apps i am working on need a wifi or 3G connection, i can find out if the iPhone is connected to wifi or 3G by looking in the Reachability sample.

    Now my question:
    Is it possible to enable wifi or 3G if they are switched off in the settings?

    Best Regards Becha
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    No, you cannot override the users choice of setting. If you need a WiFi or 3G connection and one is not available simply put up an alert telling the user that.
     
  3. Becha thread starter macrumors newbie

    Joined:
    Aug 20, 2008
    Location:
    Sweden
    #3
    Okey, i though i wasnt able to play with those settings :)
    But then i will display i warning and tell the user to enable either wifi or 3G

    Thanks for your answer
     

Share This Page