Testing suspend functionality

Probably a daft question but how can I test the suspend event functionality without having to call my iPhone and answer the call. If I call it using another phone and answer it, I am charged however if I do not answer it, it does not appear to suspend my game to the same effect.

Testing the suspend in the simulator does not cause the game to restart like it does on the actual phone.

Any advice appreciated.
[import]uid: 7863 topic_id: 5273 reply_id: 305273[/import]

In the end you just have to bite the bullet and accept the call. As you note, simulating suspend events isn’t exactly the same as a real suspend event on device, so you’re eventually going to have to test with the real thing. I say “eventually” because you should do as much tweaking beforehand as you can to minimize how many test calls you need to make.

Also, plan to work on this during off-peak hours. Don’t want to waste peak minutes on this. [import]uid: 12108 topic_id: 5273 reply_id: 17507[/import]

Thanks for the reply jhocking - I just wanted to be sure there wasn’t some clever way of simulating a suspend event on the phone without receiving a call.

I am sure my partner gets lots of free minutes on her mobile so I guess I should make the calls from that rather from the landline that probably costs loads. There are probably some websites you can enter your number on and request a call back - but that would be naughty:) [import]uid: 7863 topic_id: 5273 reply_id: 17511[/import]

By the way, turning off the screen causes a suspend event. I’m talking about the button on the top of the iPhone; hit that while your app is running and the app will suspend. When you turn the screen back on you’ll immediately resume.

Now, you still want to directly test every possible situation, so you’ll want to test receiving a call. Just pointing out the simplest way to suspend your app. Using the button on top suspends the app, while using the Home button on the front quits the app.

Come to think of it, I’m not sure if the app suspends or quits when you get a call. I guess I’ll figure that out when I test getting a call during my game. I need to handle both events anyway. [import]uid: 12108 topic_id: 5273 reply_id: 18959[/import]