![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to obtain the phone number of the iOS phone programmatically?
Getting a phone number of the iOS device is programmatically is not feasible. Apple doesn’t encourage it. You can get the phone number using private API’s but that will result in rejection of your application from the Apple App Store.
As per the apple development guideline apps should be self-contained in their bundles, and may not read or write data outside the designated container area and device number is not available within your application’s container.
As per Apple developer forum −
Regardless of which programming language you use, Apple doesn't make the phone number associated with a device available to developers.
Advertisements