Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

System Suspend Events when get new email or sms
Started by khanh.dq Feb 23 2014 08:52 AM

4 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

khanh.dq

[GLOBAL: userInfoPane.html]
khanh.dq
  • Contributor

  • 264 posts
  • Corona SDK

 Hi everybody. 

I have a problem when using the system event. I create a mini game, and when the app suspend, i need to pause the game. The problem is when I get a new email or sms, my app don't realy suspend ( don't like when someone call me ), but I still got the event "system suspend". 

 How can i discriminate between suspend when getting new sms or email and the suspend when someone call me or user press home button? When I get a new email or sms, my app is still responsible and don't need to pause.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,896 posts
  • Enterprise

Are you sure you're not also getting a resume event?

 

Also what version of Corona are you using and what devices and operating system versions are you running on?



[TOPIC: post.html]
#3

khanh.dq

[GLOBAL: userInfoPane.html]
khanh.dq
  • Contributor

  • 264 posts
  • Corona SDK

 Sorry for my late response.

I using Galaxy S4 with Android 4.4 and the Corona version is 2013.2100. I got the system suspend event but i'm still in my app. And the problem is on my device, not in my simulator.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,896 posts
  • Enterprise

The engineers would like to see your code where you are setting up your system event handler and what's going on.  Probably the best thing to do is file a bug report, submitting a sample project that show the problem, including your build.settings and config.lua files, so they can see what's going on.

 

Thanks

Rob



[TOPIC: post.html]
#5

khanh.dq

[GLOBAL: userInfoPane.html]
khanh.dq
  • Contributor

  • 264 posts
  • Corona SDK

Thanks Rob.
I will take a look again my code and see what i can do :)




[topic_controls]
[/topic_controls]