How to get own mobile number from the iOS Device programmatically? [duplicate]

别等时光非礼了梦想. 提交于 2019-12-18 17:43:08

问题


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



来源:https://stackoverflow.com/questions/40719247/how-to-get-own-mobile-number-from-the-ios-device-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!