How to get number when call is received in iphone [duplicate] - ios

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Incoming call information+iphone
I am beginner for iPhone. How to get number when call is received in iPhone . I don't have basic idea about that. Can anyone help me?

There is no way you can get this information, and I would be very surprised if Apple add this feature ever to their sdk. There will be lot of people around who will misuse this feature.
The most you can get about a phone call is using Core Telephony framework. It lets you detect the status of the call.
A CTCarrier object gives you information about the user’s cellular
service provider, such as whether it allows use of VoIP (Voice over
Internet Protocol) on its network. A CTCall object gives you
information about a current call, including a unique identifier and
state information—dialing, incoming, connected, or
disconnected(emphasis mine).
That is it.
Just read this also. Might be helpful

I am not sure if this is possible. Apple does not allow this.
Would you like it if one of your apps that you had been using picked up a phonenumber that called you and posted it on the internet? That may be one of the reasons why apple doesn't allow this…

Related

Autoanswer iOS Funtionality

I need clarification on the development part.
I was been told to develop an app with an auto answer (call) facility – it’s a critical care app where an ailing father, mother or any other family member can be monitored through auto answer facility (phone call). On the worst case would it be possible through app to app, I mean the auto answering facility. We want this facility to be enabled for our app (for specific numbers) and not for other phone or whatsapp calls.
I’ve tried my research through other forums and connecting with the developers but unable find a solution.
Thanks in advance.
There is no way to have an app answer an GSM call.
However you can answer a VoIP call yourself when using the VoIP Push from PushKit.
In conjunction with CallKit, your app could auto answer this call after a timer fires.

CallKit for Videocalls

I searched a lot in Stack Overflow and many blogs but couldn't get the proper solution. I like to use the CallKit in video call application, is it possible ?
I saw that whatsApp also not used the CallKit for its video call application. If it possible means refer any proper solutions.
Thanks in advance.
Yes, you can use Callkit for videocalls, as an example, we have our code prepare for it, but we don't use Callkit for two reasons:
There is no difference on the Callkit screen with voice calls except text, so the user can answer the call as a voice call and put the phone near his ear.
When you have the iPhone blocked and you answer an incoming videocall (and you didn't read that this was a videocall instead a voice call), iOS don't change to your app, and, therefore, you can't show the image receive.
I hope this answers your question

Is it possible to create a call tracking app on iOS?

From all I have read here, creating a call tracking app on iOS seems impossible. However, after some investigation, I have found a couple of workarounds and would like to know if they are legal and would work at all.
So, at least, I will need one of these features:
access call log history. I've read that's impossible, but also I know that on many devices where iCloud backup is turned on, call history data is saved there, so using some API, for example, this, I can access it. Am I right?
receive notifications when the call is ended. I've read this is possible only in foreground, therefore makes no sense. But following this question, I see that you can initiate calls from the application, which allows at least to track outgoing calls.
Would this be enough or I am wasting time?
Unless you're running on a jailbroken device, the answer is no because there is no publicly available API that provides access to the call list and that is a good thing from a privacy point of view.
A quick search shows that CallKit is for integrating VOIP into the call list, so again the answer is no, CallKit will not be of any use to you.
The notifications are there so that your app can respond properly to calls that take place while it is active.

iPhone app with call features

I'm trying to get into a new project, by creating an iOS application. But before I start I would like to understand some points:
is it possible to let an application make a phone call? So what I mean is, assumed we have a phone number and would like to call it. Would it be possible to use an (my) application to call this number?
is it possible to let an application speak during a phone call? So after the application started the call, would it be possible that some predefined statements are said in the call?
is it possible that this application hears, registers and analyses what the other person on the phone line is saying? (Leaving apart the privacy issue, assuming that the other person is willing to do that).
Could you please help me? If my question aren't clear, please tell me, I will try to explain it in another way.
Many Thanks
F.P.
iOS is very restricted in terms of the system behaviors third party applications can influence.
To answer your question bluntly, a third party application could prompt the user to initiate a phone / FaceTime call. Once the call is initiated however, your app would enter a background state and relinquish control to the system. The app would not be able to contribute or read any data related to the system phone / FaceTime call.
iOS 10 introduces a VoIP extension, CallKit, which allows third party apps to use the built in calling UI with a custom protocol. You could implement your own protocol (and host servers for handling the exchange of information) and build an extension to make it feel like a system call. You'd be responsible for all aspects of the custom call protocol and thus reading voices, contributing audio, etc. would all be possible (and up to your implementation).
Outside of iOS 10, you would have to built your own VoIP system and interface entirely from scratch.
For more info on CallKit:
WWDC Enhancing VoIP Apps with CallKit
CallKit Enabled Sample App

Detect Bump on No internet stackoverflow

When there is no Internet connection, is there a way to tell the user that they cannot Bump their iPhone to transfer data. I have used motionEnded: method to detect the shake, but the sensitivity is less compared to the Bump feature.
Any help?
use apple's reachability class to check for connection availability and pop up a alertview with your desired message for user.
Your question is not clear. Can you tell more about what you are trying to achieve, what you have done so far?
Anyway If I am getting this right, you want to transfer data when there is no internet connection. Remember bluetooth? Apple has built a GameKit framework on top of it. You can explore that.

Resources