Skip to main content
Participant
October 21, 2011
Question

How to detect incoming call?

  • October 21, 2011
  • 1 reply
  • 813 views

Is there a way to pause game on incoming call?

I've tested my game and it looks like it's still running in the 'background' when user receives a call. That's an issue because there is lots of screaming in my game .

Is NativeApplication Event.DEACTIVATE good? (I broke my phone so can't test it...)

This topic has been closed for replies.

1 reply

Participating Frequently
October 21, 2011

Hello,

I think that NativeApplication activate/deactive is solution you should use. When using Flex SDK components (mobile profile) you could also use view activate/deactivate events as described here:

http://blogs.adobe.com/ria/2011/04/20/tombstoning-in-air-mobile-applications/

(see: http://opensource.adobe.com/wiki/display/flexsdk/View+and+ViewNavigator )

That's unlikely that your users would hear screeming when phone call arrives or clock-based alarm arrives. I think that both are examples of events of "phone wins" strategy on iOS SDK and your audio will be terminated. The only situation when call phone does not win is when phone is in airplane mode (at least on iOS),

regards,

Peter