How to invoke a crashed app automatically in iPhone/iPad - iphone

Is it possible to invoke an app automatically when it encounters a crash in iPhone/iPad? If so, any pointers will certainly help. Thanks!

That's not possible so design your app NOT to crash instead :)

I've not tried this, but there's a reasonable chance you can run code when the app crashes by installing signal handlers in the standard C way for SIGABRT, SIGSEGV, etc.
However I have no idea how you'd make your app relaunch.
As others have said, the best approach is to stop your app crashing - that's what everyone else does.

Its not possible.

Related

How to use swift to detect app crash?

I am currently working on code to log a user's behavior in the app and to report crashes and the sequence leading up to them. I have one big problem, I do not know how to make my app detect if it has crashed. Does anybody know how to do this in swift? Your help would be much appreciated!
I don't think there is currently a way to do this. When your app crashes it ceases to function and all processes stop. Usually any crash and diagnostic data is sent via the user settings panel.
Edit: There is an helpful post here: https://stackoverflow.com/a/8242215/4891259
Hope that helps.

App that reacts on the voice of calling party

I need to develop an App that reacts on the voice of the caller - so the participant in the phone call who is 'not there'.. specifically:
Someone calls me and stops speaking. The app should alarm me saying "participant stopped speaking" (it does not matter if the sense of the app seems stupid for you now ;-))
My question is just - is this technically possible? Since apps normally are paused as soon as a phona call comes in. I know they can be restarted during the phone call - but can they react on the voice on the other side of the line or is this only possible for my own voice?
If you think its possible, any special things i have to know?
Thanks a lot!
tim
This is not possible. Because when any call comes in iPhone our application loose control and it goes in background.
With official SDK it is not possible to intercept any phone calls.
Hope this helps.
This is not valid IDEA using standard SDK, though you can do this using some other IDEA's one of them is CYDIA.
Thanks,

Close all running apps on single UIButton touch?

I wana close all the application runing in the background by single button click. Is this possible? I read all the related post.They all describe about the single application but i want to close all the running apps.I know that apple doesn't allow this.But Is there any private api for this? Please help me.Help would be appricieted. Thank you very much.
I don't think So we can do anything like this as You want to do that from some app which is having its own Address Space i.e. sandBox. Means Every App is having its own Address Space which Other App Cannot Access it, as it will result in Crash.
So, sorry to say but we Cannot up to my Knowledge... :)
I don't think it is possible but Even if you do something like this your app is for sure be rejected from uploading on app store, this will be a virus for iphone,
There is no need to stop all running apps by any means, and there is no way to do this programmatically other than jail breaking your device and hacking something together.
But in the end it makes no sense at all, see: http://speirs.org/blog/2012/1/2/misconceptions-about-ios-multitasking.html

Incoming call wakes iOS background App?

is it possible to wake an App in the background up, when a call comes in, and access CoreTelephony to send some infos over the web?
I'm practically a n00b in iOS development right now, but got asked a question if iOS is capable to do this. I searched in the iOS reference too, but with no luck.
It would be great if someone with more experience could answer it. Thanks a lot!
Steno
Please, have a look at the document about executing code in the background.
If you go to section "Implementing a VoIP Application", you will see that it is actually possible for your app to be awaken periodically so that it can check if it has anything to do (in your case, if I understand you correctly you would use CTCall to check for calling state).
So, basically, when awaken, your app could check for any incoming call and then use Core Telephony, as you say.
The only trouble about this is that if your app cannot be considered to a a VOIP app, Apple will not let it into the App Store.
It is not possible to have your code run when a call is received.

Recognize application multitask-kill iPad

Hee
Does anybody know how to recognize a multitask-kill.
When the user puts the application in background state and then kills the app through the menu in iOS 4.2 my application shuts down.
Before there used to be an function called:
- (void)applicationWillTerminate:(UIApplication *)application
This method is not called anymore in iOS 4 and higher.
Is there a way to recognize it?
Thanks already.
Actually that's not entirely true. It is called on iOS4 devices that do not support multi-tasking and the documentation says that it can be called on other handsets (though I've never seen it myself).
But to answer your question, no, you can't recognise when a user kills your app. If you have state that you want to save you need to do this when your app goes into the background and not when the app is killed.
If you look at the crash reports you'll see that iOS sends SIGKIL which you can't catch.
You cannot catch this, your processed really is killed. Hard. Without notice. That us why you need to save state when you enter background now.
Maybe setting up a signal handler might work (don't know which signal to catch, though).