Call to a phone number through iPhone App

試著忘記壹切 提交于 2019-12-06 14:49:11

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.

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.

Try this telprompt instead of tel like below modified code :

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

Then it ll come back to app after call ends.this may help you..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!