Logging calls after hanging up on smart phones - iphone

In the various smartphone APIs/SDKs, I was wondering if it is possible to prompt a user if they'd like to log a phone call after they hang up. The most basic functionality would be after calling out or receiving a call, the phone would ask
Do you want to log the call to|from 555-555-5555?
Yes | No | Never this number
(then it might take the user to a small form and then post the info to a webservice)
The business use is for lawyers who have company phones and need to track billing.
this is a bit different question than Accessing the iPhone's Call log with the iPhone SDK.

On an Android phone you can register a PhoneStateListener to receive a notification of when a call hangs up and log the number by whatever method you wish.

Blackberries have call logging out of the box. Blackberry Enterprise Server activated units sync the log with the server.

On iPhone, no way.
Apple would have to allow (shudder) background applications.
Note: Shraptnel is right, you may be able to monitor the phone state with some private API's if you jailbroke your phone and ran your program in the background.

Related

Alerting the user (Tracking) when call gets connected - Win8 metro style

I have just started using Win 8 Metro style Apps development.
Is there a way exist to track when the out going call is connected?
I want to alert the user (may be phone vibration), once connection is established.
Please give me some hint to accomplish the same.
Thanks in advance
If you are talking about simple phone calls, then no. All call-related activity is handled by the system, and your app has no control over it and therefore no need to be notified about it. If you initiate a call task from your app, the app is put into the background, and the system takes over to handle the call. This is the same behaviour as in previous Windows Phone versions.

Is it possible to send location data silently from the iphone (with users agreement ofcourse)?

I was wondering if it possible to create an application that will send my 9 year old's iPhone location let's say each 30 minutes, even when the iPhone is not active.
If not, then is it possible to send it each time he uses his phone?
Why not using an existing solution?
http://www.apple.com/icloud/features/find-my.html
See find my friends - it has also parental restrictions. This is excatly what you want.
You're probably looking for startMonitoringForReigion:desiredAccuracy:. This function will allow you to set the iPhone to notify your app anytime a defined boundary is crossed. When you receive this notification, I believe you can send that info to a server or wherever.
That said, if monitoring your child's location is what you want, you'll have great luck with the Find My Friends app from Apple.

iPhone Application Combined With Facebook

I need to know if this is possible. I want to develop an iPhone app that uses facebook credential to login (this is possible i know) and the create an event (like a dinner) and invite friends from facebook. When the time for the event comes (like 15-20 minutes before the start time) all the users that are attending the event can see how far are the others participants to this event using GPS (Core Location lookups) and see on a map as they move towards the place of the event
Yes. Everything you have described in your question is possible.
However, iPhone doesn't allow things like that to run in the background - your app would only work if each guest had the app open as they were travelling towards the event. The app would then update a server somewhere with their locations.
You might be able to do this with a notification that told them to open the app 10 minutes before the event started?
Android allows background tasks so you might want to write this for Android devices first and then make an iPhone version later?

Build Application to Answer Phone Call and Delegate To iPhone's Phone Application

We want to build an application that the user can interact with while taking a phone call. The idea is that the user can do voice communication using the phone application of the iPhone and at the same time use our application to type and send additional data that is relevant to the call such as an e-mail address. This is the scenario:
User get's a call on the iPhone
The user clicks a button on our app to answer the call and let the phone application on the iPhone handle the phone call in the background.
Our application continues to run in the foreground so that the user can interact with our application to type and send data such as an e-mail address that is relevant to the call.
Is there a way for our application to answer an incoming phone call and let the phone application of the iPhone handle the call in the background while our application continues to run in the foreground?
Thanks,
Prasanna
Currently, the iOS SDK does not support redirecting incoming calls from the system to a custom application. There is only support for initiating a call.
This is not possible with the iPhone SDK.
You could possibly do this if you created your own calling (for example, like Skype does) but I'd say you're barking up the wrong iTree here. It is however possible on jail-broken devices using the custom toolchain but I wouldn't want to recommend that path for development!
You have no control over the phone call process on an iPhone (this is assuming that you’re not talking about a jailbroken iPhone). When the user receives a call, the iPhone presents a window with the number and the “Answer” and “Ignore” buttons (or, if the phone is locked or asleep, the “Slide to Answer” bar). To return to your or any other application, the user must press the home button, sending the call to the background (and activating the red in-call status bar).
The closest you’ll get to this scenario is the user manually running the application while on the phone. But then, if all they’re doing is writing notes, they could just use the Notes app.

possible for an iPhone app to make the iPhone "go dark" for a specified number of minutes?

Can an iPhone app be made to stop all calls and text messages for a specified number of minutes, that is, prevent the user from making or getting calls and messages? Can an app turn the device off temporarily? Context: help kids to concentrate while doing their homework/studying and not be interrupted with calls and text-messages from their schoolmates.
Not if you want to get into the App Store or run on non-jailbroken devices, no. One of the guiding principles of the SDK is that you can't "break" core functionality like inbound phone calls or SMSs. You will get notified that your app is about to enter a background state (or terminate), but you can't stop the user taking the call or terminating your app.
For information in events that you do get, have a look at UIApplication and UIApplicationDelegate.