0

Is it possible for an iOS app to retrieve the cell number of an iPhone? It is possible on Android but I am not sure about iOS. Any help would be appreciated.

user2771924
  • 3
  • 1
  • 2
  • Do you mean cell phone number or GCM-Cell id number? (the id of the cell tower used for triangulation your position) – AlexWien Feb 10 '14 at 19:56
  • http://stackoverflow.com/questions/193182/programmatically-get-own-phone-number-in-ios seems to be the authoritative answer to this question. – bmike Feb 18 '14 at 20:49

2 Answers2

8

It is not possible to get the phone number of the device. Apple doesn't allow this, and it would be bad for users if app developers were easily able to get this somehow, for privacy reasons. The best way to deal with this is ask the user for it if you really want it.

There used to be ways to get the device phone number, but they were basically loopholes, or bugs in iOS, which allowed this. Apple has since fixed these, and it's very obvious that if any new methods were discovered, Apple would be fixing those as well. So it's best to just go the only route that will forever be allowed, which, again, is to ask the user.

Gavin
  • 8,204
  • 3
  • 32
  • 42
0

Assuming you mean the cell phone number, see this question: Can I get user's phone number by requesting for permission in ios 6?

In short, probably not.

Community
  • 1
  • 1
Vrasidas
  • 2,085
  • 1
  • 17
  • 23