App not working with similar Corona app running in background

I encountered a problem running two of my Corona apps simultanously.

I don’t know, if it is a bug, or if I’m doing something wrong.

I created two simple puzzle games for kids using

director = require(“director”)
game = require( “beebegames” )
slideView = require(“slideView”)

After I’ve finished one game I created another identical with new graphics but based on the code of the first one.

Now I encounter the problem, when I start one of those games it runs perfectly. But when I keep one started game running (in the background of the device) and want to start the other it looks like the loading screen will appear, but the game doesn’t move on and I end up with a white screen. It only works from there if I cancel both games and start one of both. The problem appears for both games… the first started one works, the secons stalls.

Do you have a solution for this?
Maybe some global variables of the same name causing this?
What about an IO-Function used in the game?

I really appreciate every help on this problem because I have no idea what to look at to solve this problem.
Until now I thought every app always is working without interfering with other apps.

Thank you for your help!

D. Mach
[import]uid: 137572 topic_id: 29650 reply_id: 329650[/import]

Hey D. Mach-

OOI, are you experiencing this issue running two apps at once that are based on our sample code? Eg, two Hello World apps? Please let me know and if so what version of Corona, device, etc. you are using.

Thanks,
Peach :slight_smile: [import]uid: 52491 topic_id: 29650 reply_id: 119050[/import]

Also what are you using for the bundle ID for the app (part of the provisioning profile)?

You can’t have two apps with the same bundle ID. I know you can have multiple apps if you’re using the wildcard-team profile, but there might be something getting confused since they would be on the same bundle ID. [import]uid: 19626 topic_id: 29650 reply_id: 119062[/import]

Thank you for the fast feedback!

@robmiracle: Regarding the bundle ID I’m using different ones. The first part of the IDs is identical but after the company name I’m using the name of the games, so the last part is different in the bundle ID.

@peach: I only have this problem with the last two games. They are already out and you can try to run them simultanously on one device to see the exact problem (the basic versions are free btw :slight_smile: ). I haven’t tested this with sample code yet… but I think this makes sense to localize the problem. Or maybe turn off some functions and stuff to find the problem this way.

Here are the links to the games:

http://itunes.apple.com/us/app/animal-babies-amazing-wooden/id545184635?mt=8

http://itunes.apple.com/us/app/animal-puzzles-for-kids-toddlers/id523730130?mt=8

The last one from the list was done with the stable build BEFORE the 840 one.
And the first game from the list was using build 777.

oh… and I’m using an iPad2 and an iPhone4 for testing the games.

Is there something known (beside the same bundle ID) which can cause an effect like this?

Thank you again!

D. Mach
[import]uid: 137572 topic_id: 29650 reply_id: 119085[/import]

Hey D. Mach-

Sorry for the late reply, have been traveling. (30 hours with stops to get to Tampa - ouch!)

Without having the same bundle ID there is no reason I can think of that would cause this to happen; did you file a bug report? If not could you please do so and include as much info as possible? [import]uid: 52491 topic_id: 29650 reply_id: 119833[/import]

30 hours… oh oh.

Thank you for your reply. I haven’t filled out a bug report but will do it asap.

Daniela
[import]uid: 137572 topic_id: 29650 reply_id: 120038[/import]

Same thing happens to me, I can not have two of my apps running. I have not a mistake or closed, are frozen only until one of them is eliminated. My solution has been to indicate that not work in background. BUILD.SETTINGS / UIApplicationExitsOnSuspend = true
But start the app again. [import]uid: 121547 topic_id: 29650 reply_id: 120258[/import]

Yeah - it’s the longest travel time I’ve had yet.

If either of you have filed a bug report please post the number for me here so I can follow up on it for you.

Peach :slight_smile: [import]uid: 52491 topic_id: 29650 reply_id: 120419[/import]

Hey D. Mach-

Sorry for the late reply, have been traveling. (30 hours with stops to get to Tampa - ouch!)

Without having the same bundle ID there is no reason I can think of that would cause this to happen; did you file a bug report? If not could you please do so and include as much info as possible? [import]uid: 52491 topic_id: 29650 reply_id: 119833[/import]

30 hours… oh oh.

Thank you for your reply. I haven’t filled out a bug report but will do it asap.

Daniela
[import]uid: 137572 topic_id: 29650 reply_id: 120038[/import]

Same thing happens to me, I can not have two of my apps running. I have not a mistake or closed, are frozen only until one of them is eliminated. My solution has been to indicate that not work in background. BUILD.SETTINGS / UIApplicationExitsOnSuspend = true
But start the app again. [import]uid: 121547 topic_id: 29650 reply_id: 120258[/import]

Yeah - it’s the longest travel time I’ve had yet.

If either of you have filed a bug report please post the number for me here so I can follow up on it for you.

Peach :slight_smile: [import]uid: 52491 topic_id: 29650 reply_id: 120419[/import]

Bug report: Case 16662

I guess it has to do with Cider. I started using it some weeks ago.
Anybody else here using Cider and have this problem?

Daniela
[import]uid: 137572 topic_id: 29650 reply_id: 121324[/import]

Ah - have you confirmed this as a Cider issue? Or just suspect? Any additional info would be most appreciated. [import]uid: 52491 topic_id: 29650 reply_id: 121434[/import]

I only suspect this is a Cider issue… I couldn’t confirm it yet (not enough time to look into it right now). But everything points in that direction.

Daniela [import]uid: 137572 topic_id: 29650 reply_id: 121467[/import]

OK, can’t comment further personally on that as I don’t have Cider on my Air which is all I currently have on me-

@Rycott - Are you using Cider at all? [import]uid: 52491 topic_id: 29650 reply_id: 121576[/import]

Bug report: Case 16662

I guess it has to do with Cider. I started using it some weeks ago.
Anybody else here using Cider and have this problem?

Daniela
[import]uid: 137572 topic_id: 29650 reply_id: 121324[/import]

Ah - have you confirmed this as a Cider issue? Or just suspect? Any additional info would be most appreciated. [import]uid: 52491 topic_id: 29650 reply_id: 121434[/import]

I only suspect this is a Cider issue… I couldn’t confirm it yet (not enough time to look into it right now). But everything points in that direction.

Daniela [import]uid: 137572 topic_id: 29650 reply_id: 121467[/import]

OK, can’t comment further personally on that as I don’t have Cider on my Air which is all I currently have on me-

@Rycott - Are you using Cider at all? [import]uid: 52491 topic_id: 29650 reply_id: 121576[/import]