This question already has an answer here:
-
Programmatically get own phone number in iOS
12 answers
I want to get my own contact number for my app.
I have read some answers on the stack overflow but those were old.
So please let me know according to new guidelines of Apple, can we get mobile number?
The phone number is not accessible from any Apple public API which means you can't get it.
The mobile number cannot be accessed without using any private API using which would lead to app rejection. link
This is not possible to get phone number of the device
Refer this link
Programmatically get own phone number in iOS
Get the device's phone number programmatically