Can NSURLConnection Be Used To Throttle Data?

Discussion in 'iOS Programming' started by newtoiphonesdk, Mar 20, 2012.

  1. newtoiphonesdk macrumors 6502a

    Joined:
    Jul 30, 2010
    #1
    I need to throttle it so that it meets Apple's requirements of no more than 5 MB per 5 minutes of data use. I have everything setup with NSURLConnections and would rather not have to change everything if it is not possible, I would just make it wifi only. However, if NSURLConnection can throttle the data to a certain amount over period of time, I would be most interested to learn how.
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    Two questions:

    1 - What are you doing that requires so much data?
    2 - Does that requirement apply to Wi-Fi as well as cellular, or just cellular?
     
  3. newtoiphonesdk thread starter macrumors 6502a

    Joined:
    Jul 30, 2010
    #3
    I'm just streaming audio, and according to the AppStore review guidelines, you cannot stream audio via cellular connection that uses 5 mb or more in a 5 minute time span.
     
  4. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    FWIW, I think the ASIHTTPRequest has a throttling functionality, although I've not used it. You might either use it as is or see how it works by looking at the source code.
     

Share This Page