How to get own mobile number from the iOS Device p

2019-02-11 03:27发布

问题:

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?

回答1:

The phone number is not accessible from any Apple public API which means you can't get it.



回答2:

The mobile number cannot be accessed without using any private API using which would lead to app rejection. link



回答3:

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