access phone features via iphone SDK - iphone

is it possible to use iphone's sdk to call a person through an app and have control over the voice etc?
Regards

Yes its possible to call a person using the iPhone sdk. Try this -
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"tel://8004664411"]];
But its not possible to control over voice or even call log. Because "phone" is a separate application and Apple does not allow to interact with this app.

Related

How to open “Paid” app page in iPhone's AppStore by clicking button in “Lite” app?

I have 2 versions of an app. Lite and Paid. I want to have a button in Lite version which when clicked opens App Store application on iPhone and shows the page for Paid version of the app.
How do I do this? I DONT want to open Paid version iTunes page in Safari. It should open in App Store application only.
This is a bad solution. iPhone opens Safari first, then AppStore.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms://itunes.apple.com/us/app/YOUR APP ID NO."]];
Protocol itms-apps:// solves problem. Only AppStore opens.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms-apps://itunes.apple.com/us/app/YOUR APP ID NO."]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://itunes.apple.com/{yourCountryCode}/app/idXXXXXXXXX"]];
where XXXXXXXXX is your app id
i think it doesnt get better than this.
EDIT: This link also doesn't know more and is pretty good from what i know: http://wiki.akosma.com/IPhone_URL_Schemes#App_Store

Where to look for documentation regarding iPhone telephone app

I'm new to the iPhone sdk and I'd like to know what kinds of functionality and documentation exist for the iPhone telephone app. Ie how can you make calls/get any information about calls for your personal iPhone app?
Thanks!
There is no API in the current iOS SDK to retrieve call history or make calls from within your app. There is an Address Book API (which will let you retrieve all the details for contacts in the iPhone Address Book, including phone numbers, etc.) but I don't think this is what you want. If you wanted to launch the Phone app and initiate a phone call from your app, you could do the following:
NSString *phoneNumber = #"8885555";
NSString *phoneURLString = [NSString stringWithFormat:#"tel:%#", phoneNumber];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneURLString]];
Note that this will close your app and open the Phone app.

Linking the Developer Page at the appStore from an iPhone App

So I know how to open an app page on the appStore from within my iPhone app.
Is there a way to open my company's page? On iTunes on my mac I can do that, but using that URL in the iPhone I can't (or I'm not doing it right).
Thanks in advance.
This is a great article on this subject: http://bjango.com/articles/ituneslinks/
Quote from the article:
http://itunes.com/apps/developer — Search for all apps by developer
It’s also possible to link to all apps by one developer, but there’s a catch. On a Mac or a PC,
this will open iTunes and land on a developer’s page. On an iPhone or iPod touch it’ll do a bit of a
dance, opening MobileSafari, then iTunes, then the App Store app. Not ideal, a bit ugly and slow, but
it gets there in the end.
If you’d like to hide the redirections and speed up the process, Apple recommend using NSURLConnection.
this prevents it to do little dance it does normally
NSString *iTunesLink = #"itms-apps://itunes.com/apps/companyname/";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
I used such URL in iOS 8, 9:
itms-apps://itunes.apple.com/developer/tivogi/id507966848
where tivogi is the developer's account name and id507966848 is the your developer id.
You can find correct link for you in the any browser: just go to developer page, copy url, and change scheme to itms-apps
In IOS SDK 6 and above, use below link for open developer link from app
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?artistId=524402507"]];
........

How Can I open another App from my app?

I have rediATM app installed on my iphone. rediATM app is free on itunes.
I want to open that app from my iphone app.
I am not able to find out the way to open it.
i am using the following code to open it but it takes me to the website.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://itunes.apple.com/au/app/rediatm-finder/id358936470?mt=8"]];
Please help.
It does not work because you are opening the download link for itunes.
If you want to open another app on your iPhone with your own app, you must find out if this app provides a custom URL scheme. If they do, you could open the app using that custom URL, but otherwise not.
Here is an example how to create a custom URL scheme for your own app Launching Your iPhone App Via Custom URL Scheme and Apple's documentation: Communicating with Other Apps

Generate a call, sms, etc from iphone

is it possible to generate a call or an sms from an application that we create for iphone? Also is it possible to record a call???
See the Apple URL Scheme Reference. What you want is:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"tel:1-305-555-1212"]];
and
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"sms:1-305-555-1212"]];
Unfortunately, there is currently no way to specify the text of an SMS.
As for recording calls, take a look at the Recording Audio section of the Audio Queue Services Programming Guide. I'm not sure if this functionality is disabled when a phone call is taking place, and at the very least you will have to open the application to record the audio (i.e., you won't be able to automatically record the audio). You should also look into the legality of recording phone calls and any consent requirements for the areas you wish to use/offer your application.
Is it possible to get back to our app, once the call is made and completed and can we use the app from the stage where we went for call?
#Krishna : This happens by default , if you are working on your app and you get a call your app pauses, after the call is dismissed the application will be resumed.