Writing outside of Sandbox

Discussion in 'iOS Programming' started by Ides, Feb 27, 2013.

  1. Ides macrumors member

    Joined:
    Mar 27, 2012
    #1
    Has anyone ever had an app approved that writes files outside of its sandbox? I'm asking this because I have a good idea for an app where the user downloads content, and my app writes that content to another apps sandbox. The content is documents that are usable in that other app, it is not cheating in a game or anything. Would something like this have any chance of being approved?
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    Obviously this is possible somehow. Any file opened in Dropbox can be transferred to Google Drive. I believe it has something to do with apps declaring that it can receive certain mime types via its info.plist.

    If app a says it can receive text files, and app b shares text files, then app b can send its text files to app a.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Sharing files is different than writing files outside of the sandbox, though.
     
  4. Ides thread starter macrumors member

    Joined:
    Mar 27, 2012
    #4
    Ok, so lets say there's a game (I'm not saying which right now because this project is confidential, for now :p) and it doesn't do that thing where it declares that it can receive files. In the game users can make their own levels to play on. What if I made an app that let's people download levels for that game, and to install the levels it simply writes the levels to that games doc directory? Over the line or not?
     
  5. xArtx macrumors 6502a

    Joined:
    Mar 30, 2012
    #5
    If I were the author of "that game" I might decide that it is, and have a whinge.
     
  6. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #6
    No, you can't make your own Bad Piggies level sharing app; that's Rovio's app. Unless they decide to make the app capable of opening level files.

    (Am I incorrect in my guess for what game you wanted to share levels for?)

    Edit: It might be possible to do this from a desktop app. I'm not quite sure how apps like iExplorer work, or how Bad Piggies stores its levels, but you might be able to transfer files in and out of the app bundle from a desktop app. I seriously doubt apple would allow it on the Mac App Store, but you can get a developer signature from Apple and distribute your app some other way.
     
  7. Ides thread starter macrumors member

    Joined:
    Mar 27, 2012
    #7
    Ok, lets just talk about apple. Right now I'm 95% sure that the particular company that makes this game would be chill with my app (It's not Rovio BTW). I just want to know if apple would even allow it?
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    Given that Apple won’t let you write outside your app's sandbox, I'd say you have your answer.
     

Share This Page