Data streaming

Compulsive purchase is a very important source of revenue. But sometimes, your app doesn’t fit into 18 Mo and so, users can’t download it through 3G.

To fix this, it could be cool to have the possibility to split the app in 2 parts.
The first part is 18 Mo and contains all the core functionnalities and is downloaded at purchase.
The second part is streamed to the user while using the app.

2 questions :

  • is it possible technically?
  • will Apple allow those kind of operations?
    [import]uid: 25327 topic_id: 11276 reply_id: 311276[/import]

I’m fairly sure some of the larger games are set up so that you can download the game at under the limit and then you have to update from within the app to then download all the content. I can’t seem to think of any right now however I’m sure someone else can think of some. [import]uid: 5833 topic_id: 11276 reply_id: 40914[/import]

@Michael,

  1. It is possible, but then you have to move the resources to the relevant directories and mind you, that you cannot create directories in CoronaSDK.

  2. Apple will allow that as long as they do not deem any of that downloaded asset as code.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 11276 reply_id: 40991[/import]

@jayantv

So it is not possible… In Corona.
About directories, do you say that Corona cannot create directories or that Corona does not support directories at all?
If it does support, so we could just create an empty folder called “dlc” before building to receive data streaming?
[import]uid: 25327 topic_id: 11276 reply_id: 40994[/import]

Michael,

I did not say that it is NOT possible.

CoronaSDK is like Java used to be initially, Sandboxed when it comes to Directories, etc. So you cannot create any with code.

However, I guess that creating a blank directory with the base app and then d/l to that might just work,

salut,

?:slight_smile: [import]uid: 3826 topic_id: 11276 reply_id: 40996[/import]

@jayantv

Ok, I’ve just checked the tutorial example “AsynchImageDownload” wich is just what I’m looking for.
If this is working as expected, it could be possible to make a build only with lua files then download graphic and sound assets at first launch and store them in a temporary or persistent folder.

While this could be a pain in the ass for the user waiting for the app to download all assets, it would be better to download assets when needed to split loading times. As it’s a one time download, it worths the hassle. [import]uid: 25327 topic_id: 11276 reply_id: 41002[/import]