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.
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?
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
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.
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?
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.
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.
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!