Why is facebook.login kill my game in the background?

Hey guys,

Im having this problem, where i connect the user to Facebook using:

[lua] facebook.login( fbAppID, listener, {“publish_actions”} )[/lua]

The problem is that sometimes, when Facebook returns to my app after login, my app is restarting, and sometimes its coming back to the last screen.

In my build.settings I have the following:

UIApplicationExitsOnSuspend = false

My game is using about 80mb of real memory according to “apple’s instruments”, and I’m using iPhone 4S to test this.

Is this happening to you too?

Roy.

Same issue here. It seems that the problem is time Facebook takes to respond, but I’m not sure.

Never found this issue before.

If i’m not mistaken, logging in from facebook app will put ours in background proccess right?

Have you tried using applicationSuspend or applicationResume and see what’s happening?

Im pressing the “Facebook” button from an overlay scene(above the menu scene), is it possible it has something to do with it because it from an overlayed scene and not from regular scene?

Roy.

@Roy
Sorry for slow response.
When we call overlay scene, every script (timer, listener, etc) on lower scene are still running, together with those on overlay scene. So we need to pause them manually. Maybe you already knew, im just making sure… So yep you could recheck as well.
About facebook app, i think it should restore our app to the last point it left. Including the overlay scene. Sorry i never tried your case. But on non-overlay storyboard (at least in my app), facebook and corona switch just fine. Suspend then resume.

How about the feedback from facebook? Success? Failed? Have you handle both result?
Try to print out something during the system events. Is there error or anything on console? There’s some ways to check out.

Same issue here. It seems that the problem is time Facebook takes to respond, but I’m not sure.

Never found this issue before.

If i’m not mistaken, logging in from facebook app will put ours in background proccess right?

Have you tried using applicationSuspend or applicationResume and see what’s happening?

Im pressing the “Facebook” button from an overlay scene(above the menu scene), is it possible it has something to do with it because it from an overlayed scene and not from regular scene?

Roy.

@Roy
Sorry for slow response.
When we call overlay scene, every script (timer, listener, etc) on lower scene are still running, together with those on overlay scene. So we need to pause them manually. Maybe you already knew, im just making sure… So yep you could recheck as well.
About facebook app, i think it should restore our app to the last point it left. Including the overlay scene. Sorry i never tried your case. But on non-overlay storyboard (at least in my app), facebook and corona switch just fine. Suspend then resume.

How about the feedback from facebook? Success? Failed? Have you handle both result?
Try to print out something during the system events. Is there error or anything on console? There’s some ways to check out.