Detect SIM card replacement [duplicate] - iphone

This question already has answers here:
Detect SIM change OR find IMSI of the SIM using official iOS SDK?
(2 answers)
Closed 4 months ago.
Is there any way to know if the user has changed his SIM card with a different SIM card?
really what I want to do is to know from which number he is using right now, I mean if so far he used some phone number and now he changed his phone number to a different number, can I detect it?
Thanks in advance.

You can not read sim number with public api. You can only detect if the sim card is changed, take a look to Core Telephony Framework Reference.
When you detect a sim card change you can ask nicely the user to enter his phone number and validate it via an sms system.

Related

Block the call from specific number in iphone [duplicate]

This question already has answers here:
Can an iPhone app block phone calls?
(5 answers)
Closed 9 years ago.
I want to block the phone call from the particular phone numbers. Is this possible?
I had searched and found this link :-
Block phone call post
But I don't get the exact idea whether it is possible or not?
The Exact & Clear Idea is that
It is not possible to block call from particular number in iOS Until and unless you have an jailbreaked iOS Device.
Without creating an app via jailbreak, or using private libraries at the very least, you won't be able to do this. The usage of private libraries in an app will end up with your App Store submission being denied.
It's Possible....
Short Answer : It's not possible with Straight Way. That doesn't mean there are no other Ways. Check this :
call blocking on iPhone4. Only One Condition you must follow : No AppStore at All.
Long Answer : Refer the Accepted Answer Here : How can I use private APIs to block incoming calls in an iOS application?

Record the conversation of phone - ios [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is an iPhone Call Recorder theoretically possible?
I am an iPhone devleoper.
I want to record the conversation during phone call.
I don't know apple is allowing to do this or not.
If yes, than can anybody guide me how can i do this?
Basically In my app ,I am recording 1 audio .
Now when i call someone from my contact ,I want to play that audio as well as record the conversation.
Both play and record thing I want.
I am confused whether it is possible or not.
There is no public API for recording the calls made (or received) by the built-in Phone app.
You will have to implement your own phone calling mechanism. You'll probably want to use VoIP. (That is what Google Voice uses, for example.) You'll need to run your own server on the Internet, or contract with an existing VoIP service. You'll want to use in-app purchase to let the user buy minutes, because it costs money to run your own server or use a third-party service.
There is no public API for this. No app headed for the App Store can record phone calls made with the standard Phone app.

How can I get my own cell phone number? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Programmatically get own phone number in iPhone OS
I want to get my own cell number in the app. Is there anyway to get it programmatically without taking input from user.
Luckily, there's no official way and your app will get rejected if you use one of the unofficial ways. Even if you think you have valid use case, it's a big privacy issue and the risk of abuse is too high so there is no official way to get the number. If your app or service needs this number to provide all the features you want to offer you need to ask the user to enter it into a textfield (and thus giving him a chance to deny you this information).

Get the device's phone number programmatically [duplicate]

This question already has answers here:
Programmatically get own phone number in iOS
(9 answers)
Closed 9 years ago.
I need to get my iOS device's phone number programatically.
Via google I found this code:
NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:#"SBFormattedPhoneNumber"];
NSLog(#"Phone Number: %#", num);
But somewhere I read that if I use this code, Apple will reject my app.
Is there any way to get current device phone number without user entry?
No, the device's phone number is not available programmatically and still be approved by Apple, thankfully. I definitely don't want some free app I download out of curiosity to grab my phone number and start sending me spam SMS messages or have marketers calling me.
Your already have the answers:
Can any one pls help me is there any
way to get current device number
without user entry.
Yes, using the piece of code you have in your question.
And, YES, if you get phone number programmatically WITHOUT user input, your App will be rejected by Apple.
This is plain and simple.
If you need the number, ask for it from the user. If they trust you, they will input the number.

Is there a way to get detailled GPS satellites info on iPhone? [duplicate]

This question already has an answer here:
Closed 12 years ago.
Possible Duplicate:
Is it possible to get GPS satellite numbers via iPhone SDK ?
I am looking for the equivalent of LocationManager.getGpsStatus(...) on Android (link). More precisely it would be interesting to get, for all tracked satellites: their PRN numbers, C/N0, azimuths and elevations.
I know the SDK does not have any such interface, but does anyone know of a possible way to access to these values, or any software project showing such information?
There is no public available API that allows you to get this kind of detailed information about the GPS satellites.