How to determine if phone number has changed? - iphone

Currently I am developing an authentication module for my application. The user provides his phone number and a SMS with some pin code is send to him.
The user enters the code and if it is valid his phone number is authenticated. Maybe you know WhatsApp, it does quite the same when you run the app first time.
However if the user puts a new sim card in his phone he should authenticate it again.
I want to know how to determine if phone number has changed. I read in some other question that it is not possible to determine the phone number itself. But e.g. WhatsApp recognizes that there is another phone number.
Any ideas?

Update 2
One (not the best) way it's detecting carrier changing. Here you can see how to get carrier's name. Save it at first launch and do compare on next launches.
Update 3
I'd recommend to you look at Core Telephony Network reference and especially at CTTelephonyNetworkInfo reference
subscriberCellularProviderDidUpdateNotifier allow you respond on events such like:
... when the user’s cellular provider information changes. This occurs, for example, if a user
swaps the device’s SIM card with one
from another provider, while your
application is running

Related

iOS call status tracking and get phone number

I am making a voicemail app for iOS. In this app i want two things-
Call status - If i called someone then how will i get the status of his i.e. it is busy or not reachable or switch off or call disconnected.
Phone no - If i get the status of call then how can i send voicemail on another user phone. Can i get the another user's phone no.
This is not an app to app application. I am getting caller by making him register through my app BUT by which mean i can get the number of the user who called??? Does apple provide this type of permission.
For your first question:
Post1
Post2
For your second question, there is no way for you to retrieve the caller's phone number. CoreTelephony only gives you limited access to the information such as a unique identifier for your calls and call state. To get more information, you're definitely going to have to use some low-level functions and jailbreak which means it will not be accepted into the Appstore.

search specific number in iphone contacts

I am developing a Voip application. My application has its own call logs and screen is same as native call logs. Application also has its own contacts received from server and also has iphone contacts option which display iphone's contacts like Skype.
Problem :
If any contact suppose "9999999999" is stored in native contacts i.e. in iphone contacts. It will be stored as "99-99-999999" in iphone. Now suppose incoming call in my application comes from "+919999999999" number (means with country code).
My app should find name for that number and display it. And call log detail screen should display all information which is stored in iphone's contacts (like photo, multiple number, etc.)
To search name for number I have used This. But given method in like compares exact number (not compare number with or without country code).
Is there any API available ?
I don't know how it is possible because "Bria" and "Viber" application does this.
Any help....
Thanks in advance.

iOS ABPersonViewController: Returning to app after phone call/message/email

I'm using an ABPersonViewController and I was wondering if it is possible to return to my application after making a phone call or sending an email/message instead of exiting to the respective native apps.
On the iPhone Contacts app, you can make a phone call by pressing the phone number field. Ending the call automatically takes you back to the contact screen. You can also send an email and message by clicking on the respective fields (though ending the email/message action does not take you back to the Contacts).
To be more specific, tapping on "mobile 1 (555) 555-5559" should make a phone call to that number (my app already does that). However, when I end the call, I would like to be directed back to my app and not the native iOS Phone app. I would like similar actions for sending an email and message too.
If this is possible, it would be great if someone could share the solution! Thanks for any help.
it is possible to return to my application after making a phone call or sending an email/message instead of exiting to the respective native apps.
AND
Ending the call automatically takes you back to the contact screen
In SHORT : It is not possible because Apple/iOS Does not Provide this type of Feature.

What information does an iphone app have about the handset?

Our app has a 'contact us' section, from which the user can dial our call centre. At the moment it goes through to our switchboard. We'd like to provide them with a few buttons which would route the user to the right department, but we only have one external number. We're thinking about writing a service so that the app could hit an API to register the department that the user has selected before it opens the call URL. Then when the call comes through, a plugin for the call centre software can look up to see whether the user has registered a department, and put them straight through if they have.
The problem is - what can we pass to the API that we can recognise later? We don't have the phone number in the app (or do we?) and we don't have a device ID when we're the callee. I know there's a UIDevice class reference but there's also some info that you can pull from the address book. Is there a full list anywhere of all the information that an app has about the handset?
I think it's easier to just use exensions (phone_number,extension) in order to let your call centre software route the call to the appropiate department. Phone information is really unreliable (some owners/devices/networks might block caller id).

Use Address Book for search firstname when receive notification on iphone app

I spend some days to search solution about this trouble :
I have an app wich receive notificaiton from other user. The single data, I have under server side is the number phone. So I want, when the notification is receive on the iphone, to link the number phone of sender to the addressbook of receiver for display, if the number phone is foud, the firstname of the sender to the notification.
This feature is like sms reception on the iphone, where is just the number phone used finally, and is linked to the address book.
The notification system on my app is enabled and run without trouble, but this feature is not resolved, and i found the response nowhere on the net.
Ok, i search more, and i think, this feature could be possible if the app can write under the Localize.string. In fact, it could be possible to write key value, like ("93019320"="Carla") and in the notification text the phone number "93019320" is replace by the string "Carla". But the second question is
Is it possible to write in Localiza.string under app?