launch phone app to make a call without number - iphone

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.

Related

Knowing if an app is authorized to receive push notifications on-the-fly

Consider this situation. The app runs and application:didRegisterForRemoteNotificationsWithDeviceToken: receives information that the app is authorized to receive push notifications.
User puts app to background and removes app's authorization to receive notifications on the device's configuration.
User runs app again. Returning from background, the app still thinks it has authorization to receive push notifications. Neither application:didRegisterForRemoteNotificationsWithDeviceToken: or application:didFailToRegisterForRemoteNotificationsWithError: receives anything at this point.
Is there a way to know at any given point if an app has authorization to receive push notifications (reading something from device's notification preferences)?
thanks.
You can check for [[UIApplication sharedApplication] enabledRemoteNotificationTypes] each time the app returns from background.
See: iOS - Check for push notification support in the app
Once I have verified that the user has it disabled is there a way to programmatically direct the user to the notification settings on the device's configuration?
No for newer iOS versions. According to Navigate to settings screen in iphone and iOS Launching Settings -> Restrictions URL Scheme, you can use -[[UIApplication sharedApplication] openURL:] to navigate to settings screen, but only on devices running iOS version 5.0 and prior.

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.

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.

alert for allow or dont allow Apple push notification in iphone application

I am using Apple Push Notification in my application.
when my application is installed on device i want application to ask user if they want allow application to use notification or not, how can i implement so?
something like this application.
Thanks.
You don't need to do any extra work for that. Just configure your app for push notifications and call:
[[UIApplication sharedApplication] registerForRemoteNotificationTypes: types];
This happens automatically when an app asks to register itself for push notifications, just as it does when an app first asks for the device's location. You don't need to do anything special beyond the -registerForRemoteNotificationTypes: call (as Max mentioned) which you have to make anyway.

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.