I don’t know if I have a problem with my app or its the right behavior (I don’t think so), but when I press the home button the applicationSuspend isn’t fired immmediately. Its called after I back to the application, at this moment the applicationSuspend AND applicationResume events are fired, BOTH at the same time. So, I can’t manage the on suspend functionality in my app. Seems the application closes so fast. Any clue ? [import]uid: 104813 topic_id: 23624 reply_id: 323624[/import]
Same behaviour in my app: although I don’t do anything on resume, the onSuspend code doesn’t seem to run until I resume the app. [import]uid: 70134 topic_id: 23624 reply_id: 94814[/import]
Hey pbriz,
Sorry, this wasn’t up when I had to head off earlier.
Can you tell me what version of Corona you are using, please - and what your goal is with your code?
Peach [import]uid: 52491 topic_id: 23624 reply_id: 95003[/import]
Hi Peach. I’m using the build 2012.766. What I want to do inside the applicationSuspend event is let my socket server knows when the user is not in the app; so, if the user is on the app with its socket opened the messages are sent through it (the socket) but if doesn’t (app in background) the messages are sent via push notification. The problem is when the user presses home button the app is on background (which is perfect) and socket is still opened (normal behavior), and the server continues sending messages to the app throught socket but the user doesn’t notice it until he opens the app again. applicationSuspend must be for this kind of issues.
Thanks for your time again. [import]uid: 104813 topic_id: 23624 reply_id: 95130[/import]
Another detail, same applicationSuspend behavior with the build 704. [import]uid: 104813 topic_id: 23624 reply_id: 95133[/import]
Would you be able to file a bug report about this, please? (Link in the top right hand corner.)
If you can do that would be happy to bring this up in our next meeting.
Peach [import]uid: 52491 topic_id: 23624 reply_id: 95181[/import]