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

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).

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?

iPhone (iOS4): Can I get the phone number of a phone call read to an application (similar to Mr.Number)? [duplicate]

This question already has answers here:
Checking incoming call in iphone
(4 answers)
Closed 7 years ago.
If the application is running in the background, can it save the phone numbers of received calls using CoreTelephony (or similar library)? Is it possible to listen to the incoming call event and make a callback passing data to my application?
CTCallCenter.h seems to have a currentCalls property, but I can't find a description of it. Anybody know if it has phone numbers in it?
Application called "Mr.Number" seems to have a similar feature, but it's not available outside of the US so I can't get it to check the exact functionality.
This seems to be related to Checking incoming call in iphone
Currently no.
There are lots of problems:
CTCallCenter call tracking does NOT give you the phone number of the call.
Call tracking does not really work in the background (it works while you have a background task, but once that finish the app will not get any call CTCallCenter call-backs).
currentCalls is a list of all current calls at that point in time and no they don't give you the phone number.
I looked into "Mr.Number" application to see if it actually does support such features. It doesn't track phone calls at all. I found this quote from their blog:
While we’re on the subject, we get a
lot of questions about why our iPhone
app doesn’t have all the functionality
of our Android and BlackBerry
versions. We hear you. We’d love to
offer call blocking, true caller ID,
or at the very least the ability to
look up numbers from your recent calls
without having to copy and paste them
from your call log into Mr. Number.
Unfortunately, none of this is
possible on the iPhone today without
jailbreaking. When Apple gives us APIs
to do so, we promise to bring all the
features of our Android and BlackBerry
apps to iPhone

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 it possible to "register" an iPhone App Name? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
I was wondering if It is possible to "register" an iPhone App Name before the app goes on the app store?
Example:
A developer comes up with a really clever name for a iphone game.
He wants to register the name before he programs the game so that no one else comes up with the same name.
Yes, you can, but only for a limited amount of time. When I tried it, the time period was 120 days, but this may have been changed to 90 days. EDIT: It seems that this is now 180 days, based on the comments below.
A developer can choose enter information about the application before uploading it, but Apple will remove the app and it's meta information if the name is not used within the grace period. You cannot use the name ever again after that.
I have, however, some apps that were rejected on the first review and were never re-submitted. It seems that those names are still available to me. Just don't submit a really lame first submission or Apple will know that you are "parking" the name.
Here's a screenshot of my email from Apple:
You can squat a name for something like 90 days per recent Apple iTunesConnect changes. If you do not upload a binary in that time, it will be deleted and you will be unable to use it again.
There exists a loophole I have found though I don't know how long it will stay open. It seems that uploading a binary, any binary, then immediately rejecting it will prevent you from deletion. I don't condone squatting, but sometimes, apps take longer than 90 days to develop.
If you have the money, not only submit the name in iTunes Connect, but register a trademark on the name. If you don't, than someone who does, and gets to market first with any other mobile platform game, might try to take the name from you, or involve you in legal wrangling in an attempt to do so.
You might also want to quietly snap up all the relevant domain names, if you can.
A developer can upload basic information about an app including the name before the binary is ready to be submitted. The developer needs to be set up in iTunes Connect and have an active Developer Agreement.

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.