views:

333

answers:

2

Hi iPhone developers, I want to add a feature in my iPhone app, the are:

  1. call to a phone number in my app
  2. play a recorded mp3 voice to that number
  3. after call end, relaunch the previous app

I know I have to use following code snipt for dialing to a number XXXXXX:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:XXXXXX"]];

My be play record not worked, as my app will terminate when call dial launch. is there any way to do this?

And, after call ended, or call failed will my previous app relaunch?

please answer ASAP.

+1  A: 

Not possible (without jailbreak).

Once the iPhone is in a call your app will quit and you will not be able to play any sound. You can also not relaunch the app after the call - the user has to do that themselves.

pheelicks
There are many app in appStore that after call ended or failed, app relaunched. But as I have not run this apps yet, so I am in confused.
Md. Faisal Rahman
A: 

After the call ended/failed, your app will be relaunch.

My guess is that what you try to do is not yet possible. It might become possible with OS 4.0 but you should ask the question on the developer forum.

olipion
Thnks for your reply.
Md. Faisal Rahman