views:

65

answers:

3

Hi All,

In my app, I am placing a phone call due to which my app goes in background and suspended. After disconnecting the call instead of my app coming in foreground, native phone app comes into foreground.

Is there any way by which my app comes into foreground (instead of native phone app) after disconnecting the call.

If there is no direct way, private api/methods also work as I am not going to submit this app on app store.

Thanks in advance

A: 

I doubt there is a way to do that, purely because an app in background is in a frozen state. What that means is that the app is not running but there is still memory which is allocated to it.

But, you can set a local notification in applicationDidEnterBackground: :)

Paul Ardeleanu
A: 

Since this would break sandbox security (detecting call disconnect, covering up another app, etc.), I doubt there is any API, public or otherwise, on an unmodified stock OS, that would allow you to force your app to the foreground without any user interaction.

hotpaw2