Multitasking

I was wandering if corona supports multitasking ? Or may be there is other way to do it? Thanks [import]uid: 11559 topic_id: 22528 reply_id: 322528[/import]

Multitasking is supported, you simply set it the app not to exit when minimized in build.settings;

[lua]UIApplicationExitsOnSuspend = false[/lua]

Peach :slight_smile: [import]uid: 52491 topic_id: 22528 reply_id: 89791[/import]

And if by multitasking you mean multi-threading (just in case), not as such but you can achieve it in lua (and Corona) see this : http://lua-users.org/wiki/CoroutinesTutorial [import]uid: 84637 topic_id: 22528 reply_id: 90003[/import]

@Peach
Thanks for the useful info.
Would you please check is this is correct ? Thanks

[code]

settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”,
},
},
iphone =
{
plist =
{

{

UIApplicationExitsOnSuspend = false

},

UIStatusBarHidden = true,
UIPrerenderedIcon = true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
“Icon-Small-50.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,

},
},
},
android =
{
versionCode = “100”
},
}
[/code] [import]uid: 11559 topic_id: 22528 reply_id: 90043[/import]

Close - try this though :wink:

[lua]settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”,
},
},
iphone =
{
plist =
{

UIApplicationExitsOnSuspend = false
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
“Icon-Small-50.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,

},
},
},

android =
{
versionCode = “100”
},
}[/lua] [import]uid: 52491 topic_id: 22528 reply_id: 90089[/import]

Thanks alot. [import]uid: 11559 topic_id: 22528 reply_id: 90110[/import]

hi peach,

thanks for info.

you say multitasking is possible with

UIApplicationExitsOnSuspend = false
but does that also say… the app is running when its in the background?

we talked once (or even several times) about how to set badge numbers in the background.
Still I do not got it run.
http://developer.anscamobile.com/forum/2012/02/29/notification-badges-multitasking

Really I would even pay some fee if someone does show me the trick. It came quiet important and still I don’t have a working solution. (you may answer in the post i linked above)

Thanks for all
greets
chris
[import]uid: 4795 topic_id: 22528 reply_id: 90193[/import]

The answer you have there is solid, we’ve found using seconds to work well while using os.time() to set a date can be a problem. (We’re working on that, though.)

The app is still running in the background but not executing code like it would if open - although I believe alerts should still fire normally.

If you want one-on-one assistance we do have premium support :slight_smile:

Peach [import]uid: 52491 topic_id: 22528 reply_id: 90407[/import]