Where to look for documentation regarding iPhone telephone app - iphone

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.

Related

How to open application/itunes store by one link?

I have idea! E.g I send invite to application for my friend by email. I wanna have link in this email. When user will click it, he will open application, if it's installed, if it's not - show iTunes store. Any idea how to realize it?
Communicating with Other Apps
I begun to read this one, but didn't find solution yet.
I provide the method to check whether an app is installed on iphone.
If the URL scheme for your app is "myapp:", then
BOOL myAppInstalled = [[UIApplication sharedApplication] canOpenURL:[NSURL urlWithString:#"myapp:"]];

launch phone app to make a call without number

Is any body now if I can launch the phone app without number?? the user chose or wirte the phone number to call?
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"tel:no number"]];
for launch the app phone call but no call with any number??
Thanks
App Store
Apple won't allow this — there's no point in launching the Phone app if there is no number to dial.
Jailbreak
If you just want to launch the app without dialing a number, you can always launch the app via the bundle id. You will need to search around the net on how to do this.

access phone features via iphone SDK

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.

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"]];
........

Get an iPad/iPhones unique information from your app?

How do you get the unique identifying information from an iPhone/iPad within an app? For instance, I want my app to send support emails to my website for users who have problems and I need to uniquely identify the phone number/id of the device it is running on. Is this possible, forbidden?
The unique identifier for the particular iPhone you're running on:
NSString *uniqueIdentifier = [[UIDevice currentDevice] uniqueIdentifier];
More info on CFUUID
There's some discussion about getting the user's phone number here:
Programmatically get own phone number in iOS