I have read somewhere that iphone applications should handle incoming calls and such.
I also found that playerprefs are not yet working but Joachim said allready that this is gonna be fixed in next release.
So how can we hen detect if there is an incoming call so that we can nicely shutdown our app and save state ?
function OnApplicationQuit () maybe, or is this not working?
When a call comes in, the user is given a chance to answer the call. If you ignore the call, the app is not interrupted. If the user does answer the call, the app is terminated.
I don’t know how Unity implemented it, but the application is sent applicationWillTerminate: when a call is answered. I would assume that fires an OnApplicationQuit() inside Unity, but I haven’t tested it myself.