iOS가 프로그램에서sim카드 전환을 감지하고 핸드폰 번호를 얻는 문제

1187 단어 iOS 공유
1. IOS SDK에서 제공한 인터페이스에 따라 앱이 꺼진 상태에서 SIM카드의 상태 변화를 감지할 수 없으며, 앱이 켜진 상태에서만 감지할 수 있다.
다음은 애플 문서에서 제공하는 정보입니다.
          Use the  CTTelephonyNetworkInfo  class to respond to changes in the user’s cellular service provider. This occurs, for example, if a  user swaps the device’s SIM card with one from another provider, while your application is running.
2. IOS SDK가 제공하는 인터페이스에 따라 휴대전화 번호를 얻을 수 없으며, 개인 API로 휴대전화 번호를 얻으면 애플 상점에서 거절당한다.
다음은 휴대전화 번호 취득이 애플 상점에서 거절당한 이유다.
       "For security reasons, iPhone OS restricts an application (including its preferences and data) to a unique location in the file system. This restriction is part of the security feature known as the application's "sandbox."The sandbox is a set of fine-grained controls limiting an application's access to files, preferences, network resources, hardware, and so on."
The device's phone number is not available within your application's container. You will need to revise your application to read only within your directory container and resubmit your binary to iTunes Connect in order for your application to be reconsidered for the App Store.

좋은 웹페이지 즐겨찾기