iTunes App Store In app purchases.

I know that one rule of the App store is that Apps can’t load executable code, but…

Features of some apps can be upgraded via an in-app purchase, Some complete apps an be upgraded (freemium to pro) via an in-app purchase. This means that somehow more code is added to the app. I’m not talking about properties, like more money, or more weapons, which can be increased by a change to some value in the program, I’m talking about complete new functionality.

So how is the above any different than having a game, for example, a war game in which the behavior of the enemy can be upgraded or changed (e.g. from agressive to defensive) via an in-app purchase that loads the new behavior which happens to be a Lua script ?

And also, iLuaBox ( http://www.mobileappsystems.com ) is a new app that can load and execute Lua scripts. If iLuaBox is allowed in the App Store then I’m led to believe that a game like my war game example would be allowed in the App Store too.

What do you think or know about this?
[import]uid: 295 topic_id: 4077 reply_id: 304077[/import]

That doesn’t seem like it should be a problem. And if worse came to worse, you can always embed the needed scripts in the app, but just don’t execute them until they have “purchased” specific content. Scripts that are pre-bundled with the app are 100% okay as far as I know.

With all that said, I can’t wait for in-app purchase support to come out. It’s on my Christmas wishlist (though I know it probably won’t be available by Christmas, soon after would be fine by me, lol).

[import]uid: 7849 topic_id: 4077 reply_id: 12561[/import]

I like your answer and ideas. And if what I asked is indeed that easy, I can’t wait for in-app purchases either. [import]uid: 295 topic_id: 4077 reply_id: 12578[/import]

I’m wondering if Apple would approve of me having out-app purchases. Right now I can load save games from the web via the device. This makes me believe I can allow players to unlock items by buying them through an independent web store. [import]uid: 11024 topic_id: 4077 reply_id: 12579[/import]

finnk, I’ve been wondering about the same thing.

How do you load saved games into the device? That’s Cool. A short tutorial or explanation would be highly appreciated. [import]uid: 295 topic_id: 4077 reply_id: 12582[/import]

You sink the information into an open file and then read it like you would a file saved onto the drive.

[lua] --Set up the file
local path = system.pathForFile( “data.txt”, system.DocumentsDirectory )
–Set for write (so it will let you write to it) and binary mode (some servers need this on)
local score = io.open( path, “w+b” )

–Get info, store in file specified above
http.request{
url = “http://www.site.com/userInfo.php”,
sink = ltn12.sink.file(score),
}

–PARSE INFORMATION HERE
fileinfo = parseFile(path)

–clean up the file when you’re done with it
os.remove( path )[/lua] [import]uid: 11024 topic_id: 4077 reply_id: 12584[/import]

Man the forum is hot tonight! Thanks a million finnk. [import]uid: 295 topic_id: 4077 reply_id: 12589[/import]