3

We are looking for a way to timeout an iPhone application, and have tried several methods:

NSTimer that resets after an action LocalNotification that resets after an action

Both are close, but suffer from unique issues:

NSTimer: When the phone sleeps, the timer will not fire LocalNotification: When the app is in the background, the notification is displayed, we don't have a way to have the application have to receive the notification.

Asking the group if this sounds correct, or if there is maybe some point above that I am missing that would allow this to work.

Thanks in advance!

4

1 回答 1

2

您确实意识到,当您的应用程序处于暂停状态时,您将不会收到任何通知——这在文档中是正确的。只有 3 类应用程序可以接收通知:音频应用程序(如 iPod 和类似物)、基于位置的应用程序和 voip 应用程序。如果您的应用程序是这些应用程序之一,则必须正确设置您的 plist。

于 2010-07-14T18:23:49.793 回答