Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 395
Sean Smyth Avatar asked Apr 19 '12 22:04

Sean Smyth


People also ask

How do you make a call from simulator?

Android Emulator Simulate call To simulate a phone call, press the 'Extended controls' button indicated by three dots, choose 'Phone' and select 'Call'. You can also optionally change the phone number.

How do you enable simulation on Iphone?

To launch a Simulator without running an appChoose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.


2 Answers

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.

like image 106
Lewis Gordon Avatar answered Sep 26 '22 18:09

Lewis Gordon


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.

like image 25
Jake Bonham Avatar answered Sep 24 '22 18:09

Jake Bonham