Ben
Ben

Reputation: 11471

How to test iPhone wake up code?

When an iOS app is woken up the applicationDidBecomeActive delegate is called.

If a device is attached to the debugger then the app will never sleep.

How do I debug problems in the wake up code?

Upvotes: 2

Views: 1166

Answers (1)

Mauricio
Mauricio

Reputation: 5853

just delegate your applicationDidBecomeActive to other method and unittest it. You are testing your code, not Apple's wakeup callback mechanism.

Upvotes: 2

Related Questions