Sean Smyth
Sean Smyth

Reputation: 1581

Simulating a phone call interruption in the iPhone simulator

I want to see what happens to my application if it is interrupted by a phone call or text message. Is there a way I can test this on the iPhone simulator?

Upvotes: 46

Views: 24418

Answers (3)

Vincent Gable
Vincent Gable

Reputation: 3463

Hardware -> Toggle In-Call Status will let you test the in-call UI.

I don't know of a way to test interruptions in the simulator, but as Lewis Gordon points out, you can bring up Siri on a device — even if there's no phone.

Upvotes: -12

Jake Bonham
Jake Bonham

Reputation: 76

To expand on Lewis Gordon's answer it also works for devices without Siri. If you have voice control enabled then holding the home button down will interrupt audio and resign active.

Upvotes: 4

Lewis Gordon
Lewis Gordon

Reputation: 1741

It may not help in your situation (since it doesn't work in the simulator), but activating Siri works in a similar way to a phone call, sending your application to the background and interrupting audio, so is easier to test than making a call. Siri is on iPhone 4S and above, iPod touch 5th gen, and iPad 3 and above. Just hold down the home button if you have Siri enabled.

Upvotes: 57

Related Questions