Generate a call, sms, etc from iphone - 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.

Related

Is there a way to start a hangout from another app with openURL: on the Google+ app for iPhone?

I'm building an app that needs to start a video conference from an iPhone.
They way i've implemented it is to first check if Skype is installed, if it is, i start video conferencing with skype.
If not, im checking if the Google+ app installed. And if it is i want to open that app with a Google+ username to start a hangout with the user.
an example would be:
[[UIApplication sharedApplication] openURL:"googleplus://username#gmail.com"]
Do you know if this is possible, and whats the correct identifier to call?
Currently, there is no way to start a Google+ Hangout with only an API call. However, there is a Google+ Hangouts Button that will start one.
https://developers.google.com/+/hangouts/button

Can I change APN settings from within app?

My app, makes use of APN services. At first launch, it sends a
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
request. This triggers a system alert with permission request. No matter what the user chooses, it will be possible to change it from Settings, notification pane. The app gets the notifications and everything seems to work fine.
Now I have been asked to place a switch inside the app to activate/deactivate push notifications from inside the app.
I don't think this is possible, but before answering I'd like to get a confirmation.
Is there a way to access (read and/or write) notification permissions related to a specific app from within the app itself (just like app defaults preferences)?
Is there a way to delete the app from the list of the apps which need push notifications once it has been added due to the initial request?
No, as it is a system setting relating to your app rather than an app setting. Otherwise any app could automatically enable all its notifications whenever launched, which would cause havoc.
Edit:
You can read your app's permissions using UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; and then performing a bitwise and operation with the different types to see which are enabled.

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.

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.