Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-24-2009, 02:54 PM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 1
mapple is on a distinguished road
Default Make phone call in background from app

Hi,

I'd like to know if its possible to make a call from an app, and instead of going to the normal phone call screen (which would close your app), start the call in the background.

What I am trying to accompllish is something like making a call normally, hitting the home button, and doing something else such as opening an app while the call is still going on. However, in my case I would like the call to initiate from my app, which is already open.

Does anyone have any suggestions?

Thanks
mapple is offline   Reply With Quote
Old 06-25-2009, 11:41 AM   #2 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

You can start the call, but your app will close. It will be up to the user to go to the home button and relaunch your app during the call.

To start a call, open an NSUrl with the "tel:" protocol
Apple URL Scheme Reference: Phone Links

Code:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"tel:1-800-MAN-BUFF"]];
It sounds like you want the call to connect without ever leaving you app, but that's not possible.
__________________

Free Games!

Last edited by smasher; 06-26-2009 at 09:24 PM. Reason: changed tel:// back to tel:
smasher is offline   Reply With Quote
Old 10-26-2010, 05:42 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2010
Location: Grenoble
Posts: 2
Roger_Rabbit is on a distinguished road
Default

Hi,

at first : please accept my apologize to resurrect this old topic, but that wouldn't make sense to make a new topic with exactly the same question.
- " Then why do you exhume this already-answered question?"
Basicely because new features have been released since it was answered, and those features may lead to a different answer today.

So, since apple has released the IOS 4 with nice multitasking features, my main question is : is it now possible to do a background phone call according to you?

And in order to be more accurate on my question :

According to what I found about multitasking on the latest iPhone, you can use the double tap on the "" (home) button to do such, but since I don't have an iPhone to check this, I am not sure wether a background phone call would be paused or kept on going while I am running another app in foreground.

Also, I would like to do this programmatically : ie I would like to make a phone call from my app and hide this in background while I will be using other features in foreground.
But, provided I understood well, only 3 kinds of background tasks are allowed : VOIP, audio and location. I am not sure phone call belong to the "audio" category, and I don't want to do VOIP indeed. So... should I use multithreading and launch a background thread with my
Code:
[application openURL:(NSURL *)url]
feature in this thread? (I have no way to test it now, that's why I am asking about this)

And eventually, is there a way to access (still programmatically) a background task (a phone call indeed) from an app in order to switch with it or to get notifications from it (e.g. end of call)

Thanks a lot for reading this, and in the hope someone has some answer, thanks in advance
Roger_Rabbit is offline   Reply With Quote
Old 10-26-2010, 05:59 AM   #4 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

Just let the idea go.

There is no way to make a call in the background, as soon as you make a call the dialer app comes up. And your app gets pushed to the background.

The reason for this is is clear, I could make an app that calls some kind of toll number making me lots of money with out the user know.

All you can do is start the call and just before the user will start the call ask the user to start your once the phone call has started.
TUX2K is offline   Reply With Quote
Old 10-26-2010, 07:29 AM   #5 (permalink)
Registered Member
 
Join Date: Oct 2010
Location: Grenoble
Posts: 2
Roger_Rabbit is on a distinguished road
Default

Bedankt for this quick reply TUX.
I wished someone had figured out how to do this with the new multitasking features, but you sound like it is still impossible.

Although I think security matters here could be managed by a matching design, I can fully understand why it is highly hazardous in the current settings.
Roger_Rabbit is offline   Reply With Quote
Reply

Bookmarks

Tags
app, background, call, iphone, phone

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 338
8 members and 330 guests
chiataytuday, givensur, ipodphone, jbro, mtl_tech_guy, Punkjumper, vilisei, yomo710
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,881
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:14 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0