Application start over when resume from facebook or camera.

Facebook login case

I have 3 scenes which I use the composer to be a manager.

  1. Tutorial scene: It just the image slider and next button.
  2. Facebook login scene: This scene has only 1 button that use facebook plugin to login.
  3. Main application.

When I’m on scene #2, it will bring me to facebook application to request permissions. When I allow the permissions, the application start at the #1 scene. It seems application is closed. It happens on Android. I have not tested on iOS yet.

So I check on build.settings. There is nothing to do with Android settings because there is only UIApplicationExitsOnSuspend for iOS.

Camera case

I have 2 scenes which I use the composer to be a manager.

  1. Tutorial scene: It just the image slider and next button.
  2. Camera scene: This scene has 3 webviews and 1 button that open the camera when photo is taken, callback will be ran.

It is the same case above. When photo is taken, press ‘Save’ (Android) or ‘Use photo’ (iOS), the application start at the #1 scene.

The both cases happen on first run. Mostly on Android devices. Application texture usage is around 20mb and memory usage is around 500kb. I use build #2189 (stable version).

If you guys has these experience, please share with me.

Thanks in advance.

Well I can say the problem with the camera re starting the app is an old problem cause for a memory leak. Corona know it but has no hurry to fix it. I am waitting about a year. Another Welcome.

Actually the camera memory leak in Android has been fixed as of daily build 2336.

Rob

Do you have an event listener for System Events?

Runtime:addEventListener( “system”, onSystemEvent )

What I’m seeing on Andriod is that returning from the camera will trigger this code. I don’t see this on iOS devices.

Negative, Rob, my excess of entusiam made me post a thread saying is fexed, but is not…still happening

To me is happening again and I dont have

Runtime:addEventListener( “system”, onSystemEvent )

I am not going to reopen it, or send it again. Honestly I am tired…
But please Rob, if someday you really fix it, please, as a favor, post something in this thread or in other, there are several talking about this problem, to check it again and update my apps.
Thank you anyway…I apretiate your effort.

Regards

@info741, the likely cause of not resuming after calling facebook.login() is that FB can’t figure out what app to re-launch.  Perhaps you’re building using a different AppID than you have configured in the Facebook developer’s portal or your keyhash doesn’t match what is set in the portal.

As for the second issue, without seeing your code, it’s going to be hard to say what’s going on.  Since this is happening on iOS it’s very unlikely the issue @noeguer is referring to.  20mb of texture memory is rather small and 500kb of lua memory is pretty small too.  This does not seem to be the “memory leak” issue.

@noeguer, Engineering told me that the fix in 2336:

Android: Fixed a memory leak. Casenum: 31408, 33402

There is still a small leak, but the one causing errors both in onSuspend/Resume and the camera have been fixed.  If you have evidence this is not the case, then Engineering will need to see it.

Ok. If engineer said is fixed. Is fixed then…

Well I can say the problem with the camera re starting the app is an old problem cause for a memory leak. Corona know it but has no hurry to fix it. I am waitting about a year. Another Welcome.

Actually the camera memory leak in Android has been fixed as of daily build 2336.

Rob

Do you have an event listener for System Events?

Runtime:addEventListener( “system”, onSystemEvent )

What I’m seeing on Andriod is that returning from the camera will trigger this code. I don’t see this on iOS devices.

Negative, Rob, my excess of entusiam made me post a thread saying is fexed, but is not…still happening

To me is happening again and I dont have

Runtime:addEventListener( “system”, onSystemEvent )

I am not going to reopen it, or send it again. Honestly I am tired…
But please Rob, if someday you really fix it, please, as a favor, post something in this thread or in other, there are several talking about this problem, to check it again and update my apps.
Thank you anyway…I apretiate your effort.

Regards

@info741, the likely cause of not resuming after calling facebook.login() is that FB can’t figure out what app to re-launch.  Perhaps you’re building using a different AppID than you have configured in the Facebook developer’s portal or your keyhash doesn’t match what is set in the portal.

As for the second issue, without seeing your code, it’s going to be hard to say what’s going on.  Since this is happening on iOS it’s very unlikely the issue @noeguer is referring to.  20mb of texture memory is rather small and 500kb of lua memory is pretty small too.  This does not seem to be the “memory leak” issue.

@noeguer, Engineering told me that the fix in 2336:

Android: Fixed a memory leak. Casenum: 31408, 33402

There is still a small leak, but the one causing errors both in onSuspend/Resume and the camera have been fixed.  If you have evidence this is not the case, then Engineering will need to see it.

Ok. If engineer said is fixed. Is fixed then…