Or that. But like Bob mentioned, might wanna use caution. Just because it worked now, it is not guaranteed to work in the future.
Hi Rob,
I keep coming back to this, but I have this question. Let’s say all I wanna do is send the user push notifications after the app receives an update/ information form a backend server WHILE the app is not running. Is that considered background running, and therefore not supported? OR it can be accomplished through APN/GCM plugins in Corona? If yes, is there also a way in Corona to update/send information to a backend server when the app is suspended (i.e user exited the app) ?
Thanks a lot.
APN/GCM is designed to work when the app is backgrounded. When you interact with a push and your app is backgrounded, the app will be foregrounded and you will get a notification event. If your app is exited, i.e. not running, if you interact with the notification, the app will start and you will get launch args.
You cannot run any Lua API calls while backgrounded. What you may or may not be able to do from the native side, I can’t really predict.
Rob
Okay I see, so just APN/GCM to send notifications to users from backend data should be fine?
That’s all pretty much I need for now.
Thanks a lot 
Hi, I’m making an APP for a Driver Service agency that updates GPS coordinates every 1 minute to check driver position… This is not possibile with Corona SDK? Do you will add an api to make this in the future? I hate java…
@cruero, I don’t think that running apps in background will be introduced in the near future… Your probably going to need to stick with java…
Good Luck!
[quote name=“SonicX278” post=“307791” timestamp=“1443635996”]@cruero, I don’t think that running apps in background will be introduced in the near future… Your probably going to need to stick with java… Good Luck![/quote] thanks for your reply… i’m discontented for the notice
Corona SDK is not designed to be run in the background. We always expect the user interface to be available. Data updates that would result in a screen update simply can’t be backgrounded. Those updates every minute would need to go somewhere and your app would have to be in the foreground to receive them. It would take a major overhaul of the entire engine to support this, if was even possible.
Rob
Does this have anything to do with the “background app refresh” settings in iOS?
If corona apps cannot run in background, why do they appear enabled to do so in those settings panel?
Thanks
G.
Thanks Rob, the only way to run app in background is to use Corona SDK Enterprise or it isn’t possibile anyway because engine cannot do that
Wait a minute, so running apps in the background ( e.g handling location update / receiving data from internet ) is possible BUT only in Corona Enterprise and not in Corona SDK? Or it’s not possible with any version of Corona at all? Could someone clarify please?
Thank you.
You will have to know native code to make it run in the background …
I don’t now about Enterprise or CoronaCards. They might. The problem is the Lua side and the bridge in between. As long as your enterprise app doesn’t try to send data to the Lua side or expect information from the Lua side, then it ***MIGHT*** work. You can get a trial of Enterprise and see what you can do.
**BUT** our official stance is we don’t support backgrounding and you may or may not get lucky, but we can’t provide any support or guarantee that it will work and if it does, we can’t guarantee it will work in the future.
Rob
I see, thanks a lot for clearing that up Rob. Well, my plan was to go Enterprise in the future and use my own Java APIs anyway. So I guess if I do have to process stuff in the background ( in the unlikely case for a business app) I might try and see what happens.
Someone has Corona Enterprise and can do a test? Run app in background and print coordinates in corona simulator… thanks
Or that. But like Bob mentioned, might wanna use caution. Just because it worked now, it is not guaranteed to work in the future.
Hi Rob,
I keep coming back to this, but I have this question. Let’s say all I wanna do is send the user push notifications after the app receives an update/ information form a backend server WHILE the app is not running. Is that considered background running, and therefore not supported? OR it can be accomplished through APN/GCM plugins in Corona? If yes, is there also a way in Corona to update/send information to a backend server when the app is suspended (i.e user exited the app) ?
Thanks a lot.
APN/GCM is designed to work when the app is backgrounded. When you interact with a push and your app is backgrounded, the app will be foregrounded and you will get a notification event. If your app is exited, i.e. not running, if you interact with the notification, the app will start and you will get launch args.
You cannot run any Lua API calls while backgrounded. What you may or may not be able to do from the native side, I can’t really predict.
Rob
Okay I see, so just APN/GCM to send notifications to users from backend data should be fine?
That’s all pretty much I need for now.
Thanks a lot 