How to get own mobile number from the iOS Device p

2019-02-11 03:49发布

This question already has an answer here:

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?

3条回答
Melony?
2楼-- · 2019-02-11 04:16

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

查看更多
放我归山
3楼-- · 2019-02-11 04:25

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

查看更多
forever°为你锁心
4楼-- · 2019-02-11 04:25

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

查看更多
登录 后发表回答