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 > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 10-30-2010, 09:28 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 2
Sandeep Rajput is on a distinguished road
Default How to resume app after a Phone Call

Hi there,



I am creating an iPhone app in which I am providing a call feature with the help of which a user can call place a call on a specified number. I am able achieve the above feature via open URL.



Now after completion of the call I want to resume the execution of app automatically. Although a user can make a fast app switch in iOS 4.0. but I want this to be done automatically.



I have seen the same behaviour in "TomTom" app but I am not sure how this app has achieved it.



Thanks

Sandeep
Sandeep Rajput is offline   Reply With Quote
Old 11-01-2010, 08:46 PM   #2 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 580
ChrisL is on a distinguished road
Default

Isn't this the default behavior under 4.0? Every time I finish a phone call that was started while I was using an app, the OS always seems to automatically return me to the app when finished. Are there cases where this doesn't happen?
ChrisL is offline   Reply With Quote
Old 11-22-2010, 01:59 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 48
encryption is on a distinguished road
Wink TomTom breaks the rules

TomTom has a special arrangement setup with Apple. It can play audio even when the phone is muted (with the physical switch), etc. I have noticed several instances of where it breaks Apple's rules.

Maybe you should call them up and see if you can get one of those special deals... hmmmm (lol)

NP

Quote:
Originally Posted by Sandeep Rajput View Post
Hi there,



I am creating an iPhone app in which I am providing a call feature with the help of which a user can call place a call on a specified number. I am able achieve the above feature via open URL.



Now after completion of the call I want to resume the execution of app automatically. Although a user can make a fast app switch in iOS 4.0. but I want this to be done automatically.



I have seen the same behaviour in "TomTom" app but I am not sure how this app has achieved it.



Thanks

Sandeep
encryption is offline   Reply With Quote
Old 11-22-2010, 02:27 PM   #4 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 580
ChrisL is on a distinguished road
Default

Quote:
Originally Posted by encryption View Post
TomTom has a special arrangement setup with Apple. It can play audio even when the phone is muted (with the physical switch), etc. I have noticed several instances of where it breaks Apple's rules.
The SDK supports playing audio while the ring switch is set to silent. You just have to set an appropriate audio category, like AVAudioSessionCategoryPlayback, as described in the Audio Session Programming Guide. TomTom's app is certainly not doing anything unusual there.

What other rules have you noticed that TomTom is breaking?
ChrisL is offline   Reply With Quote
Old 11-22-2010, 02:34 PM   #5 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 48
encryption is on a distinguished road
Thumbs up Looks like I was wrong

Quote:
Originally Posted by ChrisL View Post
The SDK supports playing audio while the ring switch is set to silent. You just have to set an appropriate audio category, like AVAudioSessionCategoryPlayback, as described in the Audio Session Programming Guide. TomTom's app is certainly not doing anything unusual there.

What other rules have you noticed that TomTom is breaking?
I have not been keeping a list, I'll do more research next time I notice something. Since I was wrong about the audio, an annoying but acceptable practice, I may have been wrong on the others as well.

Thanks for pointing me to that documentation!

NP
encryption is offline   Reply With Quote
Old 11-25-2010, 02:56 AM   #6 (permalink)
Dr. Touch Cocoa Helpdesk
iPhone Dev SDK Supporter
 
Join Date: Sep 2008
Location: Vienna, Austria
Posts: 537
Oliver Drobnik is on a distinguished road
Send a message via AIM to Oliver Drobnik Send a message via MSN to Oliver Drobnik Send a message via Skype™ to Oliver Drobnik
Default

Quote:
Originally Posted by Sandeep Rajput View Post
Now after completion of the call I want to resume the execution of app automatically. Although a user can make a fast app switch in iOS 4.0. but I want this to be done automatically.
AFAIK an app will resume execution from background automatically on a > 4.x iOS device and if it was build against a 4.x SDK. Backgrounding has to not be disabled via info.plist.
__________________
regards

Oliver Drobnik
Cocoanetics - Our DNA is programmed in Objective-C.

Linguan – makes localizing strings file fun!

Cocoanetics Parts Store – easy to use yet professionally looking components that you can use to spruce up your own apps. Augmented Reality, Calendar Control, Pin Lock or Purchase Button are only some examples. You get full source code, no static library crap, and lifetime support. Check it out today!
Oliver Drobnik is offline   Reply With Quote
Reply

Bookmarks

Tags
call, iphone sdk, iphone sdk4, telephony capable api

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: 381
17 members and 364 guests
ChrisYates, coolman, davejas69, fredidf, Free App Monster, givensur, iAppDeveloper, jbro, Kryckter, locombiano89, Mah6447, Meoz, simplymuzik3, stanny, stevenkik, Tomsky, WeaselPig
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,646
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, locombiano89
Powered by vBadvanced CMPS v3.1.0

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