开发者

Checking incoming call notification in iPhone

I am working on iPhone game application, in which user can play game and records some data.

My problem is that the application not supporting background processing. In my application if call's appearing then my application is terminated. But I need to save user current state.

I have read some blog and post in which they have mention that core telephony frame work can give us all such state and notification. But someone mention that core telephony A开发者_如何学GoPI is an private API. If will use this API then APPLE accept my application or not? I need to save my application current state.


You are looking for the answers in the wrong place. You do not need any access to the telephony API.

Apps by default enter the background and return to the foreground, on modern devices and iOS versions - Perhaps you are running your app on an older device or on iOS version 3.x, in which case all apps (not just yours) will be terminated when they are "exited".

Even in this case the solution is not the telephony API, but handling a notification sent to your app about your application terminating - You can save state there, and then reload it when your app is re-run.

Check out these links for more information:

  • App states and transitions
  • Multitasking
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜