2016-06-29 3 views

답변

0

iOS에서 응용 프로그램이 시작될 때 GPS 권한이 사용자에게 요청됩니다. 다음 코드 ti.xml을 추가하면 사용자가 설정에서이 권한을 명시 적으로 사용 중지 할 때까지 GPS가 iOS에서 사용하도록 설정됩니다. 다음은 ti.xml에 추가 할 코드입니다.

<ti:app> 
    <ios> 
     <plist> 
      <dict> 
       <key>NSLocationAlwaysUsageDescription</key> 
       <string> 
        Specify the reason for accessing the user's location information. 
        This appears in the alert dialog when asking the user for permission to 
        access their location. 
       </string> 
      </dict> 
     </plist> 
    </ios> 
</ti:app> 
관련 문제